Skip to content

fix(doctor): exclude previous doctor-results archives from new archive#10372

Open
davidfirst wants to merge 2 commits into
masterfrom
doctor-exclude-previous-archives
Open

fix(doctor): exclude previous doctor-results archives from new archive#10372
davidfirst wants to merge 2 commits into
masterfrom
doctor-exclude-previous-archives

Conversation

@davidfirst
Copy link
Copy Markdown
Member

When running bit doctor -a multiple times, the second run was including the archive created by the first run. Now the ignore function filters out any file matching the default doctor-results-<timestamp>.tar(.gz)? pattern, so stale archives are skipped automatically.

Copilot AI review requested due to automatic review settings May 13, 2026 19:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes bit doctor --archive so repeated runs don’t accidentally include previously generated doctor-results-<timestamp>.tar(.gz) archives inside the newly created archive.

Changes:

  • Add a doctor-results-<digits>.tar(.gz)? filename pattern and filter matching files from the archived workspace.
  • Normalize ignored file checks using path.basename() before applying the new archive-name filter.

Comment thread scopes/harmony/doctor/doctor.main.runtime.ts Outdated
Comment thread scopes/harmony/doctor/doctor.main.runtime.ts
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.

3 participants