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

Allow service tagged runners to define CI_OIDC_REQUIRED #957

Merged

Conversation

kwryankrattiger
Copy link
Collaborator

@kwryankrattiger kwryankrattiger commented Oct 3, 2024

This allows not erroring on OIDC setup for runners with service tag. Noop jobs use the service runners, but do not need access to S3 buckets. Jobs on these runners should not fail trying to find services they don't need.

If the variable CI_OIDC_REQUIRED is set in the job running on the runner, the value will be used. This will likely only be set on the noop jobs with a value of 0.

If the variable CI_OIDC_REQUIRED is not set, the exit code will be 1

ref. spack/spack#46732

This allows not erroring on OIDC setup
@mvandenburgh
Copy link
Member

@kwryankrattiger this will stop these jobs from getting reported as "Failed", right? https://gitlab.spack.io/spack/spack/-/jobs/12825706

@kwryankrattiger
Copy link
Collaborator Author

It still requires a PR to Spack, but yes the goal is to stop failing noop jobs.

I still need to verify if this doesn't just abort the job with status 0 or if this exits the script and still runs the rest of CI. Honestly either is probably ok.

This change should be safe to test in production as it is only changing the path of failure to being configurable to not fail. I don't think it is abusable since it affects runner types we don't really use for most of CI (they need v3).

kwryankrattiger added a commit to kwryankrattiger/spack that referenced this pull request Oct 11, 2024
kwryankrattiger added a commit to kwryankrattiger/spack that referenced this pull request Oct 11, 2024
@kwryankrattiger kwryankrattiger merged commit 84422a0 into spack:main Oct 11, 2024
1 check passed
arezaii pushed a commit to arezaii/spack that referenced this pull request Oct 22, 2024
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