Skip to content

feat: trigger ingot rebuild on infrastructure changes - #36

Merged
skipbit merged 2 commits into
mainfrom
add-infra-change-rebuild-trigger
Mar 22, 2026
Merged

feat: trigger ingot rebuild on infrastructure changes#36
skipbit merged 2 commits into
mainfrom
add-infra-change-rebuild-trigger

Conversation

@skipbit

@skipbit skipbit commented Mar 22, 2026

Copy link
Copy Markdown
Owner

Summary

Expand the push trigger to include infrastructure files (scripts/,
schema/, platforms.toml) and rebuild all build-type molds when these
change.

Motivation

Previously, only molds/** changes triggered ingot rebuilds. Scripts or
schema changes required manual workflow_dispatch to rebuild affected
molds, which is error-prone (forgetting to trigger).

Since scripts/ and schema/ changes affect all molds equally, they should
trigger automatic rebuilds — same as pr-validation.yml already does for
validation.

Changes

Push trigger paths

  • Added: scripts/, schema/, platforms.toml
  • .github/workflows/ intentionally excluded (affects how builds run, not what is built)

detect-build-targets logic (push event)

  • Diff ALL changed files (not just molds/)
  • Detect INFRA_CHANGED via grep pattern (same as pr-validation.yml)
  • INFRA_CHANGED: include all existing molds (find + dedup)
  • No INFRA_CHANGED: existing source-change detection (unchanged)
  • Both: deduplicated union
  • workflow_dispatch: unchanged

Test plan

  • PR validation passes (no functional change to validation)
  • Push with scripts/ change triggers rebuild of all build-type molds
  • Push with molds/ only change triggers rebuild of changed mold only
  • Push with both triggers deduplicated union

skipbit added 2 commits March 22, 2026 22:49
Add scripts/**, schema/**, and platforms.toml to push trigger paths.
When these files change, all existing build-type molds are rebuilt to
ensure published ingots reflect the latest infrastructure.

Changes to detect-build-targets:
- Diff all files (not just molds/) to detect INFRA_CHANGED
- INFRA_CHANGED: include all existing molds for rebuild
- Mold-only changes: existing source-change detection (unchanged)
- Both: deduplicated union of infra + mold targets
- workflow_dispatch: unchanged (explicit mold_path)

Design rationale:
- scripts/ changes affect build/validation logic for all molds
- schema/ changes affect mold interpretation
- platforms.toml changes affect platform matrix
- .github/workflows/ excluded (affects how builds run, not what is built)
Build-type filtering happens in Step 2 (source type classification),
not during the infrastructure change mold collection.
@skipbit
skipbit merged commit 6ea64ed into main Mar 22, 2026
3 checks passed
@skipbit
skipbit deleted the add-infra-change-rebuild-trigger branch March 22, 2026 13:59
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