Skip to content
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

Expose job name as env var #3281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

edrevo
Copy link

@edrevo edrevo commented May 10, 2024

This PR exposes the job display name as an environment variable. The job display name is exposed in webhooks as name(docs) so having it as an environment variable allows correlating data between the webhooks and processes that run in the runner.

This change would be specifically useful to improve Datadog's CI Visibility integration with GitHub Actions, where we currently require users to manually expose the job name as a variable for the integration to fully work (docs).

If this change is acceptable for the runner team, I am also happy to open a PR to update the documentation around default environment variables (docs).

@edrevo edrevo requested a review from a team as a code owner May 10, 2024 18:16
@edrevo
Copy link
Author

edrevo commented May 15, 2024

@Link- @nikola-jokic @TingluoHuang could this change be considered as an addition to the runner?

@edrevo
Copy link
Author

edrevo commented Jun 19, 2024

Gentle ping on this one @Link- @nikola-jokic @TingluoHuang . Is there anything I can do to get this reviewed?

@edrevo
Copy link
Author

edrevo commented Jul 25, 2024

@Link- @nikola-jokic @TingluoHuang 😢

@c3charvat
Copy link

This is a duplicate of #3489, and no one is reviewing this and @TingluoHuang closed this without merging before but hasn't replied why.

@c3charvat
Copy link

The simple fact of the matter is jobname+ matrix inputs exceeding 97 characters gets truncated... Which leads to job names that are unique on start but are not unique on the API search...

Tldr: truncating the uuid of a job is not good. Not giving you a uuid to search for is worse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants