Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support change detection in config #592

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

AtomicFS
Copy link
Collaborator

@AtomicFS AtomicFS commented Feb 20, 2025

There is no test for this. At least not yet.

fixes #543

@github-actions github-actions bot added documentation Improvements or additions to documentation feature New feature or request testing Testing related github_actions Pull requests that update GitHub Actions code labels Feb 20, 2025
@AtomicFS AtomicFS force-pushed the feat/support-change-detection-in-config branch 5 times, most recently from ec78153 to a04aafd Compare February 21, 2025 13:36
@AtomicFS AtomicFS force-pushed the feat/support-change-detection-in-config branch from a04aafd to 7240786 Compare February 21, 2025 14:35
@AtomicFS AtomicFS added this to the v0.15.0 release milestone Feb 21, 2025
@AtomicFS AtomicFS changed the base branch from main to feat/support-multiple-configs February 21, 2025 15:45
@AtomicFS AtomicFS changed the base branch from feat/support-multiple-configs to main February 22, 2025 06:42
- this should hopefully help to reduce copy-pasting for users
- I just changed 2 example test to test this feature
- the difference is order of the configuration files, for coreboot the
  target is in first config, while for linux it is in the second

Signed-off-by: AtomicFS <[email protected]>
- replace hard-coded code with reflection to make it more flexible

AI-Generated: true
AI-Model: ChatGPT o3-mini
Signed-off-by: AtomicFS <[email protected]>
- add unit-test to validate functionality

Signed-off-by: AtomicFS <[email protected]>
- this will make it more flexible when we add more modules in the future
- also add unit-test

AI-Generated: true
AI-Model: ChatGPT o3-mini
Signed-off-by: AtomicFS <[email protected]>
- function to create a safe name for file hopefully in any filesystem on
  any OS
- the module names are user-defined, and since we cannot grantee their
  sanity, we should sanitize them before using them as file names

Signed-off-by: AtomicFS <[email protected]>
Signed-off-by: AtomicFS <[email protected]>
- since we already have the Filenamify function, lets also use it for
  the time-stamps, to make it resilient to weird user-inputs

Signed-off-by: AtomicFS <[email protected]>
Signed-off-by: AtomicFS <[email protected]>
@AtomicFS AtomicFS force-pushed the feat/support-change-detection-in-config branch from 7240786 to 387657b Compare February 24, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature New feature or request github_actions Pull requests that update GitHub Actions code module/coreboot testing Testing related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

detect changes in JSON config file to trigger re-builds
1 participant