Skip to content

Conversation

@jmgilman
Copy link
Collaborator

Summary

  • Adds inputs field to transform hooks in image manifest, allowing declaration of files/globs that affect the hook's output
  • Extends effective checksum calculation to incorporate a hash of declared input files
  • Changes to input files now trigger re-sync even when source checksum is unchanged

Resolves HOM-30

Test plan

  • Unit tests added for EffectiveChecksumWithInputs covering all scenarios
  • Existing sync tests updated to pass baseDir parameter
  • just all passes (lint, vet, tests)
  • Manual testing: modify talos config files and verify sync detects the change

🤖 Generated with Claude Code

Transform hooks can now declare input files/globs that affect their
output via the `inputs` field. When specified, changes to these files
trigger a re-sync without needing --force.

The effective checksum now incorporates a hash of all declared input
files, ensuring that changes to transform dependencies (like
talconfig.yaml for the talos-embed-config hook) are properly detected.

Closes: HOM-30

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@linear
Copy link

linear bot commented Dec 30, 2025

The VyOS test script was waiting for "migrate.*configure" in container
logs, but this pattern doesn't appear in the VyOS Stream ISO. The script
would always wait all 90 iterations (180 seconds) before continuing.

Switch to using Docker's healthcheck status instead, which uses
`systemctl is-system-running` and properly indicates when the container
is ready. This reduces CI wait time by ~2-3 minutes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jmgilman jmgilman merged commit d93c903 into master Dec 30, 2025
2 checks passed
@jmgilman jmgilman deleted the joshuagilman/hom-30-labctl-images-sync-doesnt-detect-transform-hook-input branch December 30, 2025 06: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.

2 participants