Skip to content

fix(tooling): allow bare SURVEY_OUT filenames (#4906) - #4929

Open
aigrouphobinh wants to merge 6 commits into
limitlessprojects:mainfrom
aigrouphobinh:fix-4906-output-path
Open

aigrouphobinh wants to merge 6 commits into
limitlessprojects:mainfrom
aigrouphobinh:fix-4906-output-path

Conversation

@aigrouphobinh

Copy link
Copy Markdown

Fixes #4906. Thanks to @zach1241 for reporting the failure and proposing the one-line fix.

When SURVEY_OUT is a bare filename such as snapshot.json, dirname returns an empty string and makedirs fails before writing the snapshot. Resolve only the parent-directory calculation through abspath, while leaving the output destination unchanged.

Adds an offline regression suite that runs the real script with a synthetic token and a mocked GraphQL response. Five path forms (bare, nested relative, absolute, spaces, and default state directory) each cover empty and populated results: five test methods / ten subtests. Registers the suite in quick CI and adds scoped PLAN.md / STATUS.md verification notes.

Validation on Windows / Python 3.12 against base 762d806:

  • Before the fix: two bare-filename subtests fail with WinError 3.
  • After the fix: python -m unittest discover -s tools -p test_queue_snapshot.py -v passes (5 methods / 10 subtests).
  • Python syntax checks and git diff --check pass.
  • Downloaded fork branch files match the locally tested files exactly after newline normalization.

Hosted CI and maintainer review are pending. This is an implementation contribution to the existing report; no discovery credit or reward is claimed.

Resolve the parent directory from an absolute path while preserving the original output destination. Implements the focused fix proposed in issue limitlessprojects#4906.
Add unit tests for offline output-path regressions in queue_snapshot.py.
Run the new regression alongside existing queue tooling tests.
Record the reproduced baseline and focused tests without claiming compiler or hosted CI coverage.
Keep hosted CI, review and any award explicitly pending.
@github-actions github-actions Bot added the bot:land-candidate Shepherd: fresh, gate-clean, verifiable (set from classify()) label Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:land-candidate Shepherd: fresh, gate-clean, verifiable (set from classify())

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tooling] queue_snapshot.py crashes when SURVEY_OUT is a filename in the current directory

1 participant