Skip to content

Save and apply file modification times on CI - #2

Merged
AlekSi merged 2 commits into
mainfrom
fix-ci
Nov 18, 2025
Merged

Save and apply file modification times on CI#2
AlekSi merged 2 commits into
mainfrom
fix-ci

Conversation

@AlekSi

@AlekSi AlekSi commented Nov 18, 2025

Copy link
Copy Markdown
Owner

Closes #1.

Copilot AI review requested due to automatic review settings November 18, 2025 02:29

Copilot AI left a comment

Copy link
Copy Markdown

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 adds a mechanism to save and apply file modification times for test data files in CI environments. The change enables tests to pass on CI by preserving and restoring the exact modification times of files in internal/testdata/local/, which are apparently critical for hardcache testing.

Key changes:

  • Added modtimes.go program to save/apply file modification times
  • Committed modtimes.txt with saved modification times for all test files
  • Updated CI workflow, Makefile, and documentation to apply times before tests

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/testdata/modtimes.go Go program to save/apply file modification times
internal/testdata/modtimes.txt Saved modification times for ~1500 test files
Makefile Build modtimes tool and apply times during init
.github/workflows/go.yml Run make init before tests in CI
CONTRIBUTING.md Document need to run make init for local setup
internal/testdata/fill.sh Save modification times after filling cache
README.md Minor formatting improvements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AlekSi
AlekSi merged commit c720349 into main Nov 18, 2025
8 checks passed
@AlekSi
AlekSi deleted the fix-ci branch November 18, 2025 02:31
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.

Fix tests on CI

2 participants