Skip to content

ci: restore incremental test verification (fetch-depth: 0)#238

Merged
cameroncuster merged 1 commit into
devfrom
fix-ci-incremental-verify
Jul 9, 2026
Merged

ci: restore incremental test verification (fetch-depth: 0)#238
cameroncuster merged 1 commit into
devfrom
fix-ci-incremental-verify

Conversation

@cameroncuster

Copy link
Copy Markdown
Member

Restores incremental test verification in CI, which regressed in #234.

Root cause

oj-verify (online-judge-verify-helper) only re-runs a test when the file's
git commit time is newer than the timestamp recorded in
.verify-helper/timestamps.remote.json. That comparison needs the repo's full
git history.

Before #234 the library_checker_aizu job used actions/checkout@v1, which
clones the entire history by default. #234 bumped it to
actions/checkout@v4, whose default is a shallow clone (fetch-depth: 1).
With only the HEAD commit present, git log reports every file as last
modified at HEAD — newer than every stored timestamp — so oj-verify re-runs
the whole suite on every push instead of just the changed files.

Fix

Pin fetch-depth: 0 on that job's checkout so oj-verify sees full history
again. This matches online-judge-verify-helper's own recommended Actions setup.

Only library_checker_aizu needs full history. The other jobs
(update_main, publish_pdf, the compile/lint jobs) don't read git history,
so they're left on the default shallow checkout.

actions/checkout@v4 defaults to a shallow clone (fetch-depth: 1), which
broke oj-verify's timestamp-based change detection (regressed in #234, when
checkout went v1 -> v4). Pin fetch-depth: 0 so only changed tests re-run.
@cameroncuster cameroncuster force-pushed the fix-ci-incremental-verify branch from 500551d to 405104d Compare July 9, 2026 06:02
@cameroncuster cameroncuster merged commit 1b79a98 into dev Jul 9, 2026
8 checks passed
@cameroncuster cameroncuster deleted the fix-ci-incremental-verify branch July 9, 2026 06:04
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.

1 participant