Skip to content

Maint/warehouse dir handling - #2365

Open
atravitz wants to merge 3 commits into
maint/improve-worker-validationfrom
maint/warehouse_dir_handling
Open

atravitz wants to merge 3 commits into
maint/improve-worker-validationfrom
maint/warehouse_dir_handling

Conversation

@atravitz

@atravitz atravitz commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

fixes a bug where arbitrary filepaths would be made to create scratch. i've reorganized the directory creation steps a bit so that we aren't calling path.mkdir(parents=True), which I find to cause a lot of headaches (e.g. creating a whole nested directory structure because of a typo).

LLM / AI generated code disclosure

LLMs or other AI-powered tools (beyond simple IDE use cases) were used in this contribution:

  • No
  • Yes: [If yes, please provide details here]

Checklist

  • Read the AI Policy and filled in the AI-generated code disclosure.
  • Adhered to the contribution guidelines
  • All new code is appropriately documented (user-facing code must have complete docstrings).
  • Ran pre-commit: you can run pre-commit locally or comment on this PR with pre-commit.ci autofix.
  • Added a news entry, or the changes are not user-facing.

Manual Tests: these are slow so don't need to be run every commit, only before merging and when relevant changes are made (generally at reviewer-discretion).

Developers certificate of origin

@atravitz
atravitz changed the base branch from main to maint/improve-worker-validation November 19, 2026 23:49
@atravitz
atravitz force-pushed the maint/warehouse_dir_handling branch from 1e98263 to 80c2973 Compare November 19, 2026 23:53
@atravitz
atravitz marked this pull request as ready for review November 19, 2026 23:54
@atravitz
atravitz requested a review from IAlibay November 19, 2026 23:54
@atravitz atravitz added this to the 1.13.1 milestone Nov 19, 2026
@atravitz atravitz self-assigned this Nov 19, 2026
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.47%. Comparing base (a2bef03) to head (1a7347e).

Additional details and impacted files
@@                         Coverage Diff                         @@
##           maint/improve-worker-validation    #2365      +/-   ##
===================================================================
- Coverage                            90.47%   90.47%   -0.01%     
===================================================================
  Files                                  227      227              
  Lines                                22488    22499      +11     
===================================================================
+ Hits                                 20346    20355       +9     
- Misses                                2142     2144       +2     
Flag Coverage Δ
fast-tests 90.47% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@IAlibay IAlibay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@atravitz
atravitz force-pushed the maint/warehouse_dir_handling branch from 57af633 to 1a7347e Compare November 23, 2026 17:16
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