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

github-runner: 2.281.1 -> 2.282.0, prevent self-update #137673

Merged
merged 3 commits into from
Sep 15, 2021
Merged

github-runner: 2.281.1 -> 2.282.0, prevent self-update #137673

merged 3 commits into from
Sep 15, 2021

Conversation

veehaitch
Copy link
Member

@veehaitch veehaitch commented Sep 13, 2021

Motivation for this change

I tested this with the outdated and no longer working version 2.278.0. With the new patch, the worker still picks up jobs.

Closes #120263

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

The runner only references `GitInfoCommitHash`/`CommitHash` to print
informational log entries. To allow for just referencing the tag of a
version instead of the commit hash, this commit sets the value of the
`GitInfoCommitHash` to a static dummy value.
As of yet, a patch caused the runner to discard update messages.
Unfortunately, GitHub keeps sending update messages to outdated runners
causing them to no longer pick up jobs.

This commit causes the runner to send a high version to GitHub which
should be more recent for quite a time. That way, GitHub does not send
update message and keeps scheduling jobs even for outdated runners.

Naturally, an oudated runner can still break at any time as GitHub's
current approach assumes that all runners are always up-to-date. We
should still strive for quick nixpkgs updates but this patch should give
us some time.
@veehaitch veehaitch changed the title github-runner: prevent self-update github-runner: 2.281.1 -> 2.282.0, prevent self-update Sep 14, 2021
@Mic92 Mic92 merged commit cc53d86 into NixOS:master Sep 15, 2021
@github-actions
Copy link
Contributor

Successfully created backport PR #137984 for release-21.05.

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

Successfully merging this pull request may close these issues.

github-runner: outdated runner fails silently
2 participants