GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bws: lib/bws-to-sops.sh --check is silently skipped when --dry-run is also passed — freshness check exits 0 without comparing (PR #6401) · Issue #6631 · developing-today/code

bws: lib/bws-to-sops.sh --check is silently skipped when --dry-run is also passed — freshness check exits 0 without comparing (PR #6401) #6631

New issue
Copy link
New issue
Copy link
Closed
#6704
Closed
bws: lib/bws-to-sops.sh --check is silently skipped when --dry-run is also passed — freshness check exits 0 without comparing (PR #6401)#6631
#6704
Copy link
Labels
kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 6, 2026
Issue body actions

Finding (unaddressed PR review comment)

PR #6401 — "feat(bws): names-only --check freshness mode for the SOPS mirror (#5451)" — is merged, and a CodeRabbit finding on it was never fixed or responded to (merged PRs have no grace period; the concern was verified live on current main).

  • Reviewer: coderabbitai[bot], 2026-11-06T00:23:10Z (Minor · Functional Correctness)
  • Comment: feat(bws): names-only --check freshness mode for the SOPS mirror (#5451) #6401 (comment)
  • File: lib/bws-to-sops.sh:99

Essence of the comment ("Give --check precedence over --dry-run"): "When both options are supplied, the script exits successfully after listing keys, even if the mirror is stale. It never compares the mirror. Give --check precedence so its exit status reports freshness."

No-response evidence

  • The inline thread contains only the CodeRabbit comment (id 4487652599) — no replies (fresh gh api pulls/6401/comments read, 2026-11-06). (The PR's two Codex findings were replied to and fixed in-PR by dezren39; this CodeRabbit finding was not.)
  • GraphQL reviewThreads for PR feat(bws): names-only --check freshness mode for the SOPS mirror (#5451) #6401: the thread is isResolved: false.
  • The PR merged at head 36e37f4c62b41898155c21307a6492e5cd80c2fd with the flagged ordering intact, and no follow-up commit on main has changed it (verified by the current-main read below).

Still-live evidence

Read on current main (2026-11-06), lib/bws-to-sops.sh: argument parsing sets DRY_RUN=true and CHECK=true independently, and the dry-run branch runs first and exits:

if [ "$DRY_RUN" = true ]; then
  echo "Would write $COUNT secret(s) to ..."
  jq -r 'keys[] | "  " + .' <<<"$DOC"
  exit 0
fi

if [ "$CHECK" = true ]; then
  # Names-only freshness check ... Exit 0 when the mirror is fresh, 1 on
  # any drift ... and 2 on operational failure
  ...
fi

So lib/bws-to-sops.sh --check --dry-run (in either order) lists key names and exits 0 without ever decrypting or comparing the mirror — a caller combining the flags gets a "fresh" success signal for a check that never ran. This is the script the scheduled bws-freshness workflow relies on for drift detection (#5451).

Dedupe: searched open/closed issues for "dry-run check bws", "6401", "bws-to-sops" on 2026-11-06 — no issue covers this flag-precedence defect. Issue #5451 is the parent freshness-check task PR #6401 implements; it does not record this defect.

Acceptance criteria

  • Fix the defect: when both --check and --dry-run are supplied, --check takes precedence (the freshness comparison runs and its 0/1/2 exit status is reported), or the combination is rejected with a clear error and a non-zero exit — it must never exit 0 without comparing; cover the combined-flags case in lib/bws-to-sops-check.test.sh; OR resolve this issue with a documented decision explaining why the current behavior is intended.
  • Do not reply to or resolve the source PR review thread from the fix work (per the pr-comment-review job rules); the correction lands as a follow-up change or is decided here.

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    developing-todayBot
    on Nov 6, 2026 – with developing.today
    Contributor
    More actions

    CODE-2037

  3. dezren39
    added
    source/pr-comment-reviewFiled by the pr-comment-review job
    on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: pr-comment-review job
    • Session / ID: pr-comment-review 2026-11-06 15:54 CST
    • Found via: unaddressed PR comment, feat(bws): names-only --check freshness mode for the SOPS mirror (#5451) #6401 (comment)
    • Task: bws-to-sops.sh --check silently skipped when --dry-run is also passed (PR feat(bws): names-only --check freshness mode for the SOPS mirror (#5451) #6401)
    • Expectation: effort s — triage verifies the finding against current code, then routes a fix or records a documented decision on this issue
    • Links: source comment feat(bws): names-only --check freshness mode for the SOPS mirror (#5451) #6401 (comment) · issue bws: lib/bws-to-sops.sh --check is silently skipped when --dry-run is also passed — freshness check exits 0 without comparing (PR #6401) #6631
  5. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Picked up by repo-worker-code-y (Lane Y queue worker shift, FALLBACK MODE — queue backend down: fleet queue health returns HTTP 503 PGRST002; fallback protocol in doc/fleet/queue-fallback-mode.md followed manually via the gh CLI).

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-y
    • Session / ID: repo-queue-worker-shift-y run, 2026-11-06 19:24 CST (fallback mode; no queue task id — issue bws: lib/bws-to-sops.sh --check is silently skipped when --dry-run is also passed — freshness check exits 0 without comparing (PR #6401) #6631 is the task)
    • Found via: fallback scan of queue/queued issues (backend down)
    • Task: verify the --check/--dry-run precedence defect in lib/bws-to-sops.sh on current main; the fix is small and fully specified (give --check precedence + a combined-flags fixture case), so I will verify and implement in the same pass
    • Expectation: effort s; done = fix + fixture case on a branch, PR opened and merged when verified (Codex gate), or triage findings + requeue if the code does not match the filing
    • Links: lib/bws-to-sops.sh; lib/bws-to-sops-check.test.sh; PR feat(bws): names-only --check freshness mode for the SOPS mirror (#5451) #6401 (origin, do not touch its review threads per the issue's rule)
  6. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 7, 2026
  7. developing-today
    added
    status:in-review
    on Nov 7, 2026
  8. dezren39
    added a commit that references this issue on Nov 7, 2026

    Merge pull request #6704 from developing-today/queue/fb-6631-check-pr…

    dbf57fb
  9. dezren39
    closed this as completedin #6704on Nov 7, 2026
  10. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 7, 2026
  11. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Released by repo-worker-code-y (outcome: done). Defect verified on current main exactly as filed and fixed in the same pass: PR #6704 MERGED as dbf57fb — the --check block in lib/bws-to-sops.sh now runs before the --dry-run branch, so combined flags always run the freshness comparison and report its 0/1/2 status. Fixture suite: all 9 cases pass (2 new combined-flags cases); the stale combined case fails on unfixed code with "exit 0, want 1" (oracle). Codex review: no findings. Issue auto-closed by the merge. The source PR #6401 review thread was not touched, per the issue's rule.

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-y
    • Session / ID: repo-queue-worker-shift-y run, 2026-11-06 19:24 CST (fallback mode)
    • Found via: fallback scan of queue/queued issues (backend down)
    • Task: --check/--dry-run precedence in bws-to-sops.sh — verified and fixed via PR fix(bws): --check takes precedence over --dry-run in bws-to-sops.sh (#6631) #6704
    • Expectation: done = fix PR merged — complete
    • Links: PR fix(bws): --check takes precedence over --dry-run in bws-to-sops.sh (#6631) #6704
  12. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.