Add CI scripts: diff, sort, reconcile, removal detection#104
Merged
Conversation
- diff-groups.py: YAML diff for PR plan comments (pure Python, no creds) - sort-members.py: sort members.yaml by group priority with section headers - reconcile-groups.py: plan/apply removals (suspend users, remove memberships) - provision-groups.py: add --prev-* flags for removal detection + Slack warnings
Terraform Plan🚧 Changes detected — Plan: 5 to add, 0 to change, 0 to destroy. Plan outputLLM ReviewRisk: 🟢 LOW Adding AWS Glue crawler and BCM data export infrastructure for cost analytics reporting with no destructive changes.
|
Alexanderamiri
added a commit
that referenced
this pull request
May 9, 2026
## Summary Four new/updated scripts for the registry CI pipeline: - **`scripts/diff-groups.py`** — diffs YAML between base and PR branch, outputs Markdown plan comment (no AWS/Google creds needed) - **`scripts/sort-members.py`** — sorts members.yaml by group priority (drift → styret → pkom → kodesmia → region → javazone → other) with section headers - **`scripts/reconcile-groups.py`** — two-phase reconciliation: `--plan` queries live Google Workspace + outputs plan, `--apply` executes (suspend accounts, remove memberships). Safety limit of 10 suspensions without `--force`. - **`scripts/provision-groups.py`** — now accepts `--prev-*` flags to detect removals at merge time and post warnings to Slack **Companion PR:** javaBin/registry feat/ci-plan-sort-reconcile (workflows that call these scripts) ## Test plan - [ ] Platform CI passes - [ ] Merge this first, then registry PR - [ ] Test PR plan comment on a registry PR - [ ] Test sort on a PR with members - [ ] Test reconcile plan mode manually
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
Four new/updated scripts for the registry CI pipeline:
scripts/diff-groups.py— diffs YAML between base and PR branch, outputs Markdown plan comment (no AWS/Google creds needed)scripts/sort-members.py— sorts members.yaml by group priority (drift → styret → pkom → kodesmia → region → javazone → other) with section headersscripts/reconcile-groups.py— two-phase reconciliation:--planqueries live Google Workspace + outputs plan,--applyexecutes (suspend accounts, remove memberships). Safety limit of 10 suspensions without--force.scripts/provision-groups.py— now accepts--prev-*flags to detect removals at merge time and post warnings to SlackCompanion PR: javaBin/registry feat/ci-plan-sort-reconcile (workflows that call these scripts)
Test plan