Skip to content

fix(runner): ignore changes inside .git#115

Merged
Brooooooklyn merged 1 commit intomainfrom
09-15-fix_runner_ignore_changes_inside_.git
Sep 16, 2025
Merged

fix(runner): ignore changes inside .git#115
Brooooooklyn merged 1 commit intomainfrom
09-15-fix_runner_ignore_changes_inside_.git

Conversation

@branchseer
Copy link
Copy Markdown
Member

@branchseer branchseer commented Sep 15, 2025

TL;DR

Ignore .git directory when tracking file accesses for task caching.

What changed?

Added a condition in execute_task to ignore file accesses to paths that start with .git or exactly match .git. This prevents oxlint's reads inside the .git directory from invalidating the cache.

Added a test case to verify that changes inside the .git directory don't invalidate the lint cache.

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@branchseer branchseer marked this pull request as ready for review September 15, 2025 08:24
Copilot AI review requested due to automatic review settings September 15, 2025 08:24
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 a task caching issue where file accesses inside the .git directory were incorrectly invalidating the lint task cache. The fix ignores file accesses to paths within the .git directory when tracking changes for cache invalidation.

  • Added logic to filter out .git directory accesses from cache tracking
  • Added comprehensive test case to verify .git changes don't invalidate cache

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
crates/vite_task/src/execute.rs Implements the core fix by filtering out .git directory accesses
packages/cli/tests/cases/lint-dot-git/steps.json Defines test commands to verify cache behavior with .git changes
packages/cli/tests/cases/lint-dot-git/snap.txt Expected test output showing cache hit after .git modifications
packages/cli/tests/cases/lint-dot-git/package.json Minimal package.json for test case setup

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread crates/vite_task/src/execute.rs Outdated
Comment thread crates/vite_task/src/execute.rs Outdated
@branchseer branchseer force-pushed the 09-15-fix_runner_ignore_changes_inside_.git branch from 53959d3 to 0aa9425 Compare September 15, 2025 08:26
Copilot AI review requested due to automatic review settings September 15, 2025 10:26
@branchseer branchseer force-pushed the 09-15-fix_runner_ignore_changes_inside_.git branch from 0aa9425 to 864fb28 Compare September 15, 2025 10:26
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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread crates/vite_task/src/execute.rs
Copy link
Copy Markdown
Member Author

branchseer commented Sep 15, 2025

Merge activity

  • Sep 15, 10:26 AM UTC: Graphite rebased this pull request as part of a merge.
  • Sep 15, 10:38 AM UTC: Graphite couldn't merge this PR because it was not satisfying all requirements.
  • Sep 15, 10:40 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Sep 15, 10:44 AM UTC: Graphite couldn't merge this PR because it failed for an unknown reason.
  • Sep 16, 3:28 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Sep 16, 3:29 AM UTC: Graphite rebased this pull request as part of a merge.
  • Sep 16, 3:39 AM UTC: Graphite rebased this pull request as part of a merge.
  • Sep 16, 3:49 AM UTC: Graphite couldn't merge this PR because it was not satisfying all requirements.
  • Sep 16, 3:52 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Sep 16, 3:52 AM UTC: @Brooooooklyn merged this pull request with Graphite.

@branchseer branchseer force-pushed the 09-15-fix_runner_ignore_changes_inside_.git branch from 864fb28 to ed60aa2 Compare September 15, 2025 10:46
Copilot AI review requested due to automatic review settings September 16, 2025 03:29
@Brooooooklyn Brooooooklyn force-pushed the 09-15-fix_runner_ignore_changes_inside_.git branch from ed60aa2 to cb5b02a Compare September 16, 2025 03:29
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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread crates/vite_task/src/execute.rs
Signed-off-by: branchseer <dk4rest@gmail.com>
@Brooooooklyn Brooooooklyn force-pushed the 09-15-fix_runner_ignore_changes_inside_.git branch from cb5b02a to e88ed00 Compare September 16, 2025 03:38
@Brooooooklyn Brooooooklyn merged commit 08d33d9 into main Sep 16, 2025
8 checks passed
@Brooooooklyn Brooooooklyn deleted the 09-15-fix_runner_ignore_changes_inside_.git branch September 16, 2025 03:52
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.

4 participants