diff options
| author | Claude | 2026-06-26 00:00:00 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-06-26 10:14:49 -0500 |
| commit | 2866d00d74286c24e82b2af758f05d951c399b42 (patch) | |
| tree | 7bdb84af36650cb9eb3fab96470a4abb66eca934 /services | |
| parent | 40aa65663d500c5e738787c78e39bd83096aa1c0 (diff) | |
| download | gn-machines-2866d00d74286c24e82b2af758f05d951c399b42.tar.gz | |
Add %show-commits and wire it into gn-integration-tests-gexp
Introduce %show-commits, a standalone program-file that accepts an
arbitrary list of paths as command-line arguments and prints the HEAD
commit of each one that is a git repository, silently skipping any
path that does not exist or has no .git directory.
This replaces the ad-hoc show-head-commit helpers that were defined
locally in gn-auth-test-flask and gn-integration-tests-gexp. The
caller decides whether sudo is required:
;; Laminar user owns this clone — no sudo:
(invoke #$%show-commits path)
;; CD-managed repos are owned by genenetwork — use sudo:
(invoke #$sudo "-u" "genenetwork" #$%show-commits path1 path2 ...)
Changes:
* Remove hline, show-head-commit, and the five show-head-commit calls
from gn-auth-test-flask. They ran on every flask invocation (noisy)
and will be replaced by a single %show-commits call at the job level.
* Define %show-commits after %gn-auth-test-flask.
* In gn-integration-tests-gexp:
- Add repositories-checkout-directory to the match-record.
- Remove the local hline and show-head-commit helpers.
- Call %show-commits without sudo for the freshly-cloned
gn-integration-tests repo (Laminar user owns it).
- Call %show-commits via sudo -u genenetwork for the four
CD-managed repos (gn-auth, gn-libs, genenetwork3, genenetwork2).
* Add %show-commits to the sudoers rule so the Laminar user may run
it as the genenetwork user.
Diffstat (limited to 'services')
0 files changed, 0 insertions, 0 deletions
