-
Notifications
You must be signed in to change notification settings - Fork 55
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
Mix of pipeline and job level tags does not tag GHA job #1296
Comments
Hi @jmeickle-theaiinstitute ! There are some limitations around adding custom tags to GitHub jobs. We have some docs related to this. The TLDR is that if the job name is changed using the Could this be whats going on here? 👀 |
I've tried every possible combination of job name appearing anywhere in datadog or CICD. It's also silently failing to send tags to jobs which are not part of a matrix run. Both when tags are set as env variables, and when tags are attempted to be sent via datadog-ci, regardless of whether DD_GITHUB_JOB_NAME is provided or not provided. [edit] Worth noting, my jobs are part of a reusable workflow triggered by a parent job |
Hi @benjamin-cribb-jane , we recently had a bug that caused GitHub jobs' custom tags not to be added. We think that what might've happened is this:
Hopefully it works now! 🤞 |
hey did you try those steps @benjamin-cribb-jane ? 😄 |
Hey there, I'm experiencing similar issues to what's been described here. To be specific, I'm not really seeing tags come through at the job level at all, though pipeline tags seem to work fine. I tried adding the
In case the detail matters, technically the Run datadog-ci tag --level job --tags pod_name:gha-runner-large-dgflp-44nnq
datadog-ci tag --level job --tags pod_name:gha-runner-large-dgflp-44nnq
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
DD_GITHUB_JOB_NAME: Build admin-api
Tags sent But if I go into Metrics Explorer, select the "CI Pipelines" dataset, set the "Level" to "Job", and open the "by" field I can see In case it helps, my org ID is Please let me know if you have any suggestions, thank you! |
Bug description
In Github Actions, when running this command in a job:
The Github Actions step output is:
(That is, it runs twice successfully)
This is a case where we have one pipeline with two parallel jobs, both running these tagging commands. Using the example above,
repro
shows up as a tag on the pipeline butjobrepro
does not show up as a tag on the job (in any run).Describe what you expected
Either the
datadog-ci
tool should tag the data, or it should fail if this is an invalid usageSteps to reproduce the issue
No response
Additional context
v2.33.1 of
datadog-ci
Command
tag
The text was updated successfully, but these errors were encountered: