feat(configs): point hermes at gitea admin/hermes ansible repos #28

Closed
hermes wants to merge 2 commits from hermes/brencher:feat/migrate-hermes-to-multi-remote-v2 into main_corrupted
Contributor

Summary

Migrates backend/configs/hermes.py from the legacy url= form to the new remotes=[{name, url}, ...] form introduced by #3.

Important: the deploy target is admin/ansible (compose at poc/hermes/stack-compose.yml), not uber_backup as the old URL string suggested. The github.com/rudolf1/uber_backup URL was working only by accident — the brencher container is actually serving admin/ansible content from that repo name on github (which no longer exists as a public repo; brencher's old cached clone is what's been keeping hermes alive).

What's in this PR

Same pattern as hermes_infra.py after PR #8:

clone = GitClone(remotes=[
    {"name": "gitea_hermes", "url": "https://gitea.rudolf.keenetic.link/hermes/ansible"},
    {"name": "gitea_admin",  "url": "https://gitea.rudolf.keenetic.link/admin/ansible"},
])
  • gitea_hermes: where feature branches live (hermes/ansible:*)
  • gitea_admin: the live-deploy source (admin/ansible:*)
  • No github remote — brencher can't reach github through the proxy (HTTP 403 on CONNECT tunnel; see #23 for the same fix)
  • branchNamePrefix="ansible" is dropped — it's a silent no-op when no remote is named origin (backend/steps/git.py ~L104)

Diff

-clone = GitClone(url="https://github.com/rudolf1/uber_backup.git", branchNamePrefix="ansible")
+clone = GitClone(remotes=[
+	{"name": "gitea_hermes", "url": "https://gitea.rudolf.keenetic.link/hermes/ansible"},
+	{"name": "gitea_admin",  "url": "https://gitea.rudolf.keenetic.link/admin/ansible"},
+])

Supersedes

PR #27 (closed) had the wrong URL set — it pointed at the non-existent admin/uber_backup/hermes/uber_backup and included a broken github remote. The error was caught when comparing brencher's working clone (/tmp/hermes_606a8) against the file's URL: the clone was actually admin/ansible, not uber_backup.

Test plan

  1. Add gitea_hermes/feat/migrate-hermes-to-multi-remote-v2 to brencher state for hermes.
  2. Watch brencher logs: Cloning repositories [gitea_hermes, gitea_admin] should succeed (both remotes exist).
  3. Confirm hermes stack stays healthy (auto-7fa09102 is current; expected_version == actual_version after merge).
  4. Merge this PR.

Closes #21
Refs #11 (parallel issue, same scope)
Part of #18

## Summary Migrates `backend/configs/hermes.py` from the legacy `url=` form to the new `remotes=[{name, url}, ...]` form introduced by #3. **Important**: the deploy target is `admin/ansible` (compose at `poc/hermes/stack-compose.yml`), not `uber_backup` as the old URL string suggested. The `github.com/rudolf1/uber_backup` URL was working only by accident — the brencher container is actually serving `admin/ansible` content from that repo name on github (which no longer exists as a public repo; brencher's old cached clone is what's been keeping `hermes` alive). ## What's in this PR Same pattern as `hermes_infra.py` after PR #8: ```python clone = GitClone(remotes=[ {"name": "gitea_hermes", "url": "https://gitea.rudolf.keenetic.link/hermes/ansible"}, {"name": "gitea_admin", "url": "https://gitea.rudolf.keenetic.link/admin/ansible"}, ]) ``` - `gitea_hermes`: where feature branches live (`hermes/ansible:*`) - `gitea_admin`: the live-deploy source (`admin/ansible:*`) - **No github remote** — brencher can't reach github through the proxy (HTTP 403 on CONNECT tunnel; see #23 for the same fix) - `branchNamePrefix="ansible"` is dropped — it's a silent no-op when no remote is named `origin` (`backend/steps/git.py` ~L104) ## Diff ```diff -clone = GitClone(url="https://github.com/rudolf1/uber_backup.git", branchNamePrefix="ansible") +clone = GitClone(remotes=[ + {"name": "gitea_hermes", "url": "https://gitea.rudolf.keenetic.link/hermes/ansible"}, + {"name": "gitea_admin", "url": "https://gitea.rudolf.keenetic.link/admin/ansible"}, +]) ``` ## Supersedes PR #27 (closed) had the wrong URL set — it pointed at the non-existent `admin/uber_backup`/`hermes/uber_backup` and included a broken `github` remote. The error was caught when comparing brencher's working clone (`/tmp/hermes_606a8`) against the file's URL: the clone was actually `admin/ansible`, not `uber_backup`. ## Test plan 1. Add `gitea_hermes/feat/migrate-hermes-to-multi-remote-v2` to brencher state for `hermes`. 2. Watch brencher logs: `Cloning repositories [gitea_hermes, gitea_admin]` should succeed (both remotes exist). 3. Confirm `hermes` stack stays healthy (`auto-7fa09102` is current; expected_version == actual_version after merge). 4. Merge this PR. Closes #21 Refs #11 (parallel issue, same scope) Part of #18
hermes force-pushed feat/migrate-hermes-to-multi-remote-v2 from 37616c5935 to 437e6ac034 2026-08-30 22:17:23 +02:00 Compare
hermes added 1 commit 2026-08-30 23:14:15 +02:00
feat(configs): point hermes at gitea admin/hermes ansible repos
Python package / build (flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics, 3.12.3) (pull_request) Successful in 1m3s
Python package / build (flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics, 3.13) (pull_request) Successful in 47s
Python package / build (flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics, 3.14) (pull_request) Successful in 50s
Python package / build (flake8 . --count --select=E9,F63,F7,F82 --ignore=F824 --show-source --statistics, 3.12.3) (pull_request) Successful in 45s
Python package / build (flake8 . --count --select=E9,F63,F7,F82 --ignore=F824 --show-source --statistics, 3.13) (pull_request) Successful in 42s
Python package / build (flake8 . --count --select=E9,F63,F7,F82 --ignore=F824 --show-source --statistics, 3.14) (pull_request) Successful in 45s
Python package / build (mypy --no-incremental --config-file mypy.ini backend tests, 3.12.3) (pull_request) Successful in 2m1s
Python package / build (mypy --no-incremental --config-file mypy.ini backend tests, 3.13) (pull_request) Successful in 2m6s
Python package / build (mypy --no-incremental --config-file mypy.ini backend tests, 3.14) (pull_request) Successful in 2m6s
Python package / build (pip list, 3.12.3) (pull_request) Successful in 43s
Python package / build (pip list, 3.13) (pull_request) Successful in 46s
Python package / build (pip list, 3.14) (pull_request) Successful in 1m10s
Python package / build (python -c "import sys; print(f'Python {sys.version}'); print(f'Build: {sys.version_info}'); print(f'Implementation: {sys.implementation}')", 3.12.3) (pull_request) Successful in 54s
Python package / build (python -c "import sys; print(f'Python {sys.version}'); print(f'Build: {sys.version_info}'); print(f'Implementation: {sys.implementation}')", 3.13) (pull_request) Successful in 44s
Python package / build (python -c "import sys; print(f'Python {sys.version}'); print(f'Build: {sys.version_info}'); print(f'Implementation: {sys.implementation}')", 3.14) (pull_request) Successful in 47s
94ca49b9a4
Migrates backend/configs/hermes.py from the legacy single-remote
url= form to the remotes=[{name, url}, ...] form introduced by #3.

The deploy target is admin/ansible (compose at poc/hermes/stack-compose.yml),
not uber_backup as the old URL string suggested. Mirrors the pattern in
backend/configs/hermes_infra.py after PR #8:

  - gitea_hermes: where feature branches live (hermes/ansible:*)
  - gitea_admin:  the live-deploy source (admin/ansible:*)

No github remote: brencher container cannot reach github through the
proxy (HTTP 403 on CONNECT tunnel; see #23 for the same fix).
branchNamePrefix='ansible' is dropped — it's a no-op when no remote
is named 'origin' (backend/steps/git.py ~L104).

Closes #21
Refs #11 (parallel issue, same scope)
hermes force-pushed feat/migrate-hermes-to-multi-remote-v2 from 437e6ac034 to 94ca49b9a4 2026-08-30 23:14:15 +02:00 Compare
admin added 1 commit 2026-09-05 15:20:21 +02:00
Обновить backend/configs/hermes.py
Python package / build (flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics, 3.12.3) (pull_request) Successful in 42s
Python package / build (flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics, 3.13) (pull_request) Successful in 42s
Python package / build (flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics, 3.14) (pull_request) Successful in 45s
Python package / build (flake8 . --count --select=E9,F63,F7,F82 --ignore=F824 --show-source --statistics, 3.12.3) (pull_request) Successful in 39s
Python package / build (flake8 . --count --select=E9,F63,F7,F82 --ignore=F824 --show-source --statistics, 3.13) (pull_request) Successful in 42s
Python package / build (flake8 . --count --select=E9,F63,F7,F82 --ignore=F824 --show-source --statistics, 3.14) (pull_request) Successful in 50s
Python package / build (mypy --no-incremental --config-file mypy.ini backend tests, 3.12.3) (pull_request) Successful in 2m7s
Python package / build (mypy --no-incremental --config-file mypy.ini backend tests, 3.13) (pull_request) Successful in 2m7s
Python package / build (mypy --no-incremental --config-file mypy.ini backend tests, 3.14) (pull_request) Successful in 2m10s
Python package / build (pip list, 3.12.3) (pull_request) Successful in 39s
Python package / build (pip list, 3.13) (pull_request) Successful in 39s
Python package / build (pip list, 3.14) (pull_request) Successful in 39s
Python package / build (python -c "import sys; print(f'Python {sys.version}'); print(f'Build: {sys.version_info}'); print(f'Implementation: {sys.implementation}')", 3.12.3) (pull_request) Successful in 36s
Python package / build (python -c "import sys; print(f'Python {sys.version}'); print(f'Build: {sys.version_info}'); print(f'Implementation: {sys.implementation}')", 3.13) (pull_request) Successful in 36s
Python package / build (python -c "import sys; print(f'Python {sys.version}'); print(f'Build: {sys.version_info}'); print(f'Implementation: {sys.implementation}')", 3.14) (pull_request) Successful in 37s
04d3624afd
hermes closed this pull request 2026-09-05 19:42:10 +02:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/brencher#28