Skip to content

ci(pr-validation): shallow checkouts and scoped app.validate - #118

Merged
Seungpyo1007 merged 1 commit into
mainfrom
ci/pr-validation-shallow
Sep 30, 2026
Merged

Seungpyo1007 merged 1 commit into
mainfrom
ci/pr-validation-shallow

Conversation

@Seungpyo1007

Copy link
Copy Markdown
Member

Step 6 of GetTechAPI/TechAPI#350 (replaces the deploy-pages idea: that job only runs on main pushes, this one runs on every TechAPI PR).

  • head and base checkouts: fetch-depth: 0 -> 1; head deepened to depth 100 for the merge base (unshallow fallback); pinned base fetched at depth 1.
  • app.validate -> --changed-since $TECHAPI_DIFF_BASE.
  • Not changed: integrity_check.py still scans both full trees (its checks are population-based, e.g. MAD outliers), and the site-change detector still walks site/. Both are follow-ups.

The PR validation comment cloned TechAPI's full history twice (head and base)
and ran app.validate over every record. Check both out at depth 1, deepen the
head only to the merge base, fetch the pinned base at depth 1, and validate
just the changed records. integrity_check still scans both trees; it is
population-based and needs its own scoping.

Refs GetTechAPI/TechAPI#350
@Seungpyo1007 Seungpyo1007 added the ci Continuous integration changes label Sep 30, 2026
@Seungpyo1007 Seungpyo1007 self-assigned this Sep 30, 2026
@Seungpyo1007
Seungpyo1007 merged commit 08f5ca9 into main Sep 30, 2026
1 check passed
@Seungpyo1007
Seungpyo1007 deleted the ci/pr-validation-shallow branch September 30, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous integration changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant