Skip to content

Conversation

@sontek
Copy link
Contributor

@sontek sontek commented Sep 26, 2024

We want to start passing basic CI info such as the branch and PR number over to sinistral so our customers have additional metadata around where their results are coming from.

This requires: https://github.com/stacklet/sinistral/pull/428

We want to start passing basic CI info such as the branch and PR number
over to sinistral so our customers have additional metadata around where
their results are coming from
@sontek sontek changed the title Add support for grabbing CI info from the env feat: Add support for grabbing CI info from the env Sep 26, 2024
@sontek sontek marked this pull request as ready for review September 30, 2024 13:37
Copy link
Contributor

@albertodonato albertodonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

# We don't need to record CI info for local runs.
if ci_info["service"] == "local":
ci_info = None

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the get_ci_info() call could be made in the else clause, we don't need to try to fetch them running locally

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only know its a local run after I've called get_ci_info but I could do this logic up in that call so it returns None

@sontek sontek merged commit 75215f7 into main Oct 2, 2024
@sontek sontek deleted the ENG-3680 branch October 2, 2024 14:01
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.

3 participants