Skip to content

acceptance: merge delete_one local+cloud, replace sort_acls_json with gron --sort-arrays#5104

Merged
denik merged 2 commits into
mainfrom
denik/fix-delete-one
Apr 28, 2026
Merged

acceptance: merge delete_one local+cloud, replace sort_acls_json with gron --sort-arrays#5104
denik merged 2 commits into
mainfrom
denik/fix-delete-one

Conversation

@denik
Copy link
Copy Markdown
Contributor

@denik denik commented Apr 28, 2026

Changes

  • Merge bundle/resources/permissions/jobs/delete_one/{local,cloud} into a single test that runs in both modes (Local=true, Cloud=true).
  • Add --sort-arrays KEY1,KEY2 flag to acceptance/bin/gron.py for canonicalizing commutative arrays before flattening; replaces acceptance/bin/sort_acls_json.py (deleted).
  • Clean up display_name from the backend response (inconsistent between different clouds).

secret_scopes/basic was the other caller of sort_acls_json.py and is migrated to gron.py --sort-arrays acls in the same change.

Test plan

  • go test ./acceptance -run 'TestAccept/bundle/resources/permissions' — 34 pass, 0 fail, 3 cloud-only skipped.
  • go test ./acceptance -run 'TestAccept/bundle/resources/secret_scopes/basic$' — pass on terraform + direct.
  • testme-aws against aws-prod-ucws for bundle/resources/permissions/jobs/delete_one — pass on terraform + direct.

This pull request was AI-assisted by Isaac.

denik added 2 commits April 28, 2026 13:08
…ith gron --sort-arrays

Combine bundle/resources/permissions/jobs/delete_one/{local,cloud} into a
single test that runs in both modes. Add --sort-arrays to gron.py to canonicalize
commutative ACL arrays before flattening, replacing sort_acls_json.py.

Also fixes the cloud-only failure where display_name was missing from the
permissions get response for freshly-created test principals: the script now
pipes through grep -v display_name, which gron's flat output makes trivial.

Co-authored-by: Isaac
The previous commit deleted sort_acls_json.py and updated the test scripts
to call gron.py --sort-arrays, but the gron.py change itself and the
permissions/output.txt aggregate refresh were never staged. Tests passed
locally only because both lived in the working tree. This commit completes
the change so HEAD is self-consistent.

Co-authored-by: Isaac
@denik denik temporarily deployed to test-trigger-is April 28, 2026 11:16 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is April 28, 2026 11:16 — with GitHub Actions Inactive
@denik denik merged commit 80f7a54 into main Apr 28, 2026
25 of 26 checks passed
@denik denik deleted the denik/fix-delete-one branch April 28, 2026 15:10
denik added a commit that referenced this pull request Apr 29, 2026
PR #5104 (80f7a54) renamed the secret_scopes/basic per-step files from
*.json to *.txt when migrating to gron.py --sort-arrays. The regen commit
4d38526cc on this branch accidentally resurrected the old .json file with
stale content. The script writes .txt, so the .json is unused and
test-update flags it as an unexpected output.

Task: 010.md

Co-authored-by: Isaac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants