Repository navigation
fix(tooling): allow bare SURVEY_OUT filenames (#4906) - #4929
Open
aigrouphobinh wants to merge 6 commits into
Open
aigrouphobinh wants to merge 6 commits into
aigrouphobinh wants to merge 6 commits into
Conversation
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.
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.
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:
Hosted CI and maintainer review are pending. This is an implementation contribution to the existing report; no discovery credit or reward is claimed.