Page MenuHomePhabricator

[nix] Run set-up-authoritative-keyserver.sh on nix startup
ClosedPublic

Authored by inka on Mar 12 2024, 7:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 2:10 PM
Unknown Object (File)
Mon, Dec 16, 2:10 PM
Unknown Object (File)
Mon, Dec 16, 2:10 PM
Unknown Object (File)
Mon, Dec 16, 2:10 PM
Unknown Object (File)
Mon, Dec 16, 2:10 PM
Unknown Object (File)
Mon, Dec 16, 2:10 PM
Unknown Object (File)
Nov 16 2024, 11:54 PM
Unknown Object (File)
Nov 16 2024, 11:49 PM
Subscribers

Details

Reviewers
michal
tomek
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rCOMMda499ccaf125: [nix] Run set-up-authoritative-keyserver.sh on nix startup
Summary

issue: ENG-6845
We want to run set-up-authoritative-keyserver.sh when nix is run.

Test Plan

Ran nix develop and checked that the script is executed

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Mar 12 2024, 7:13 AM
Harbormaster returned this revision to the author for changes because remote builds failed.Mar 12 2024, 8:19 AM
Harbormaster failed remote builds in B27473: Diff 38022!
inka requested review of this revision.Mar 12 2024, 8:57 AM
inka planned changes to this revision.Mar 12 2024, 8:59 AM

emscripten hangs because it waits for user input

michal requested changes to this revision.Mar 12 2024, 9:42 AM
michal added inline comments.
scripts/set-up-authoritative-keyserver.sh
8 ↗(On Diff #38025)

Instead of a timeout it would be better to skip this script on CI:

  • Buildkite:
# from keyserver/addons/rust-node-addon/install_ci_deps.sh
if [[ -z "$BUILDKITE" ]];
then
  exit
fi
  • Github: there is a similar env variable: GITHUB_ACTIONS (docs)
This revision now requires changes to proceed.Mar 12 2024, 9:42 AM

If running inside buildkite or github actions - exit.
I tested that if both are empty, the sqript continues, and if one of them or both are not empty, the script exits

This revision is now accepted and ready to land.Mar 13 2024, 3:50 AM