-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datadog-ci junit upload
linked job is not helpful with GitHub
#1497
Comments
hey @eps1lon , thanks for the report! I think what you're looking for is the pipeline URL: Line 235 in dcd26a6
This URL already has the shape you're expecting, I think:
You're right and that's why we can't offer a deeper link. Would using pipeline URL instead of job URL work for you? Or did I misunderstand your issue? |
I'm looking for the Job URL e.g. https://github.com/vercel/next.js/actions/runs/12000501567/job/33449700959. If we'd be able to configure this, we'd have the choice of actually querying the workflow ID from GH Apis. Since it's not configurable, we don't have that choice. I'll ignore the Job URL until then in favor of the Pipeline URL. |
I see, so you'd like to be able to manually set |
datadog-ci junit upload
linked job is not helpful with GitHudatadog-ci junit upload
linked job is not helpful with GitHub
Yeah, basically #594. Specifying |
Bug description
@datadog/[email protected] junit upload
associates a job URL with the test that is not helpful in our case.The linked job URL will link to the generic "Checks" page of the merge commit in CI (e.g. https://github.com/vercel/next.js/commit/3dd3d19ba63c7ca790f3bf39e0e15152b597547c/checks)
Setting
DD_CI_JOB_URL
to something we find more useful does not work. In vercel/next.js#73180, we still get the default job name and job url e.g. https://github.com/vercel/next.js/commit/12adaf1a0b0cb362fedc65168c3a15828af2d4e8/checks instead of https://github.com/vercel/next.js/actions/runs/12015965067/attempts/1Describe what you expected
Linking to the actual job e.g. https://github.com/vercel/next.js/actions/runs/12015964713/job/33495310395.
Since GitHub doesn't expose the job id but only workflow id, the link to the workflow is the next best thing e.g.
DD_CI_JOB_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}
Steps to reproduce the issue
test.yml
Additional context
No response
Command
None
The text was updated successfully, but these errors were encountered: