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

ci: Fix repo settings for self-hosted runners and debugging #1110

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

joeyparrish
Copy link
Member

@joeyparrish joeyparrish commented Oct 21, 2022

The hack of using "secrets" to store per-repo settings was not working. The main reason is that pull_request workflows don't have access to secrets no matter what you do. So it was impossible to make this work for settings like "ENABLE_SELF_HOSTED" for PR tests.

This change replaces that old hack with a new one. Now a repo owner must create a "GitHub Environment" with the name of the setting they want to enable. Currently supported values are "self_hosted", to add self-hosted runners to the build/test matrix, and "debug", to start an SSH server for debugging when a workflow fails.

Issue #1047 (CMake porting)

The hack of using "secrets" to store per-repo settings was not
working.  The main reason is that pull_request workflows don't have
access to secrets no matter what you do.  So it was impossible to make
this work for settings like "ENABLE_SELF_HOSTED" for PR tests.

This change replaces that old hack with a new one.  Now a repo owner
must create a "GitHub Environment" with the name of the setting they
want to enable.  Currently supported values are "self_hosted", to add
self-hosted runners to the build/test matrix, and "debug", to start an
SSH server for debugging when a workflow fails.
@joeyparrish joeyparrish marked this pull request as draft October 21, 2022 18:38
@joeyparrish joeyparrish marked this pull request as ready for review October 21, 2022 18:41
@joeyparrish
Copy link
Member Author

Note that because the settings were not working, we did not realize the arm64 build workflow was broken. There will be a follow-up PR with a fix for that.

@joeyparrish joeyparrish merged commit 31ad9a2 into shaka-project:cmake Oct 25, 2022
@joeyparrish joeyparrish deleted the repo-settings branch October 25, 2022 15:53
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants