Skip to content

test(laptop-backups): exporter stub uses resolved BASH shebang, not /usr/bin/env (#17789) - #17805

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/0900gy-17789
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/0900gy-17789

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17789.

Root cause (firsthand, run 46527361806 log)

laptop-backups-pm-dashboard-backup-manifest failed only in its turso-export scenario, with FAILED Turso canonical store export failed in the backup run. The run log names the actual error:

/build/home/pm-dashboard-backup.sh: /build/tmp.../turso-fixture-exporter: /usr/bin/env: bad interpreter: No such file or directory

The suite's fixture exporter was the only stub in pm-dashboard-backup-manifest.test.sh written with a literal #!/usr/bin/env bash shebang. The backup script executes the exporter directly, and the laptop-backups flake-check sandbox has no /usr/bin/env, so the export step could not exec there — while passing on any host that has one (the suite passes unmodified on this seat). Every other stub in the suite (bws, journalctl, rclone, both dump stubs) is already written with printf '#!%s\n' "$BASH", and the sibling date/prune suites document the same rule ("the nix build sandbox has no /usr/bin/env"). The diverging side is the suite, not pm-dashboard-backup.sh.

Fix

Write the exporter stub in the suite's established $BASH pattern, with a comment naming the rule so it is not reintroduced. No script change, no other suite change.

Verification

  • Local (diagnosis aid): full manifest suite passes at this head with zstd on PATH — pm-dashboard-backup manifest tests: all passed, including turso-export: completed and all four manifest-member assertions that failed in the registered-exception run.
  • Remote at PR head: fleet queue dispatch running nix build .#checks.x86_64-linux.laptop-backups-pm-dashboard-backup-manifest in the build sandbox (the venue that failed) — result linked in a PR comment before merge.

Follow-on

PR #17777's laptop-backups-flake-checks.yml carries the registered exception for this check and says to remove it when #17789 lands; that removal is sequenced right after this PR and #17777 merge (noted on both).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T22:48:18Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…usr/bin/env (#17789)

The turso-export scenario's fixture exporter was the only stub in
pm-dashboard-backup-manifest.test.sh written with a literal
\#!/usr/bin/env bash shebang. The laptop-backups flake-check sandbox
has no /usr/bin/env, so the backup script's export step died with
'bad interpreter' there (run 46527361806, firsthand) while passing
on hosts that have one. Every other stub in the suite - and the
sibling date/prune suites, which document the rule - already uses
printf '#!%s' "$BASH". Bring the exporter stub in line.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 45eb0b4d-a472-4711-8e1e-db856bfc00a3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification update (lane 0900-GY):

Run 46530760889 (fleet queue dispatch, PR head e6f0c23): the flake check passed in the build sandbox — the builder log shows turso-export: completed, all four turso manifest assertions ok, and pm-dashboard-backup manifest tests: all passed, producing store path /nix/store/wa21j5zpb4sw8yissc7qyqzg76p1kmaz-check-laptop-backups-pm-dashboard-backup-manifest. The run's exit 1 came after the build: nix build failed creating its result symlink in the executor's target dir (Permission denied) — dispatch plumbing, not the check.

Re-dispatched with --no-link as follow-up run 46532102082 for a clean VERIFY_OK_17789 at the same head.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification complete (lane 0900-GY): follow-up run 46532102082 concluded success — builder log shows pm-dashboard-backup manifest tests: all passed and the command printed VERIFY_OK_17789 firsthand at the PR head (e6f0c23). Merging on own verification.

@developing-today-fleet
developing-today-fleet Bot merged commit db917c7 into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/0900gy-17789 branch November 30, 2026 23:05
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.

test(nixos/home): pm-dashboard-backup-manifest flake check fails at head — turso-export scenario exits 1 after the DB-dump step, no manifest produced

1 participant