Repository navigation
fix(team-provisioner): skip manual groups in registry group sync - #192
Merged
Merged
Conversation
javazone@java.no is the JavaZone coordination group's list. The registry gave `javazone` to ~36 heroes, so every groups/ merge added them to it (2026-10-23 re-added ~37 users that admin had removed on 2026-08-04). Only koordineringsgruppa may be in it, and its membership is kept by hand. A group with `manual: true` in the registry's groups.yaml is now left alone: - provision-groups.py sends it with no members - the Lambda skips it in sync_groups_and_heros and sync_groups - reconcile-groups.py plans no removals from it - sync-members.py maps the sheet's "JavaZone" choice to no group - sort-members.py drops the javazone section Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Terraform Plan🚧 Changes detected — Plan: 0 to add, 1 to change, 0 to destroy. Plan outputLLM ReviewRisk: 🟢 LOW Plan makes a single in-place update to the Lambda function javabin-team-provisioner, changing only its deployment package (source_code_hash), with no creates or destroys.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The registry group sync kept adding JavaZone volunteers to
javazone@java.no. That is the JavaZone coordination group's list, and only koordineringsgruppa may be in it. A group markedmanual: truein the registry'sgroups.yamlis now kept by hand: nothing syncs into it or plans removals from it.Background, from the Google audit log: admin removed ~35 synced users from
javazone@java.noon 2026-08-04, and the provisioner re-added ~37 on 2026-10-23, because the registry listedjavazonefor 36 heroes. Jan Erik cleaned the group by hand on 2026-11-11. It now holds only the nestedjz-koordineringsgruppenand three coordinators.Evidence
python3 -m unittest scripts/tests/test_manual_groups.py terraform/lambda-src/tests/test_team_provisioner_google_group.py→FAILED (failures=6)After:
python3 -m unittest discover -s scripts/tests→ 228 OK,python3 -m unittest discover -s terraform/lambda-src/tests→ 267 OKReview focus
handler.pyhandle_sync_groups_and_heros: manual groups are left out of Step 3 only. They stay in the Step 6 maps, so an access group can still nest them.provision-groups.py: a manual group goes to the Lambda withmembers: []andmanual: true. An older Lambda therefore only ensures the group exists.Out of scope: validation skips bot-opened registry PRs; sheet syncs overwrite memberships added by hand; the Apps Script never adds
helter. All three predate this PR.Merge danger
Door: two-way
Blast radius: registry group sync
Applies to prod (single account) via platform CI. Merge this before javaBin/registry
fix/javazone-manual-group. Either order is safe against new additions. Revert restores the old behaviour, but the registry no longer listsjavazonememberships, so nobody would be re-added.OpenSpec
spec-free: the repo has no
openspec/; this is a bug fix to registry sync behaviour, documented indocs/lambda-functions.md.🤖 Generated with Claude Code