-
Notifications
You must be signed in to change notification settings - Fork 4
Force components to be generated after seeding/updating. #35
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -605,6 +605,8 @@ Documentation of the Default DOSDP Pipeline | |
|
|
||
| <!-- This is a placeholder, it will be regenerated when makefile is first executed --> | ||
| </rdf:RDF> | ||
| ^^^ src/ontology/tmp/stamp-component-{{ component.filename }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The analysis makes sense, but the fix relies on the stamp having a newer On macOS the two files are written ~120µs apart, so it works. On Linux (I think) the kernel stamps mtimes from a coarse clock, so two files written back to back get the same timestamp (tested on overlayfs and tmpfs; GNU Make 4.4.1 then treats the target as up to date). That covers ODK containers on Linux hosts and our ubuntu-latest CI jobs. It also fails for exactly the case this fix targets: newly added components (ontology-metadata#210). Suggestion: make the ordering explicit instead of relying on write order. After unpacking, backdate the placeholder: os.utime(component_path, (0, 0))This works on any kernel, and backdating is safer than pushing the stamp into the future. Perhaps add a comment explaining why, so nobody deletes it later. Also, consider adding a check in test-configs.sh that each stamp is newer than its component after seeding. Since seed-tests.yml runs on both ubuntu-latest and macos-15, this should have caught the problem. |
||
|
|
||
| {% endfor -%} | ||
| {% endif -%} | ||
| {% if 'basic' in project.release_artefacts or project.primary_release == 'basic' -%} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest
os.path.basename(t).startswith("stamp-component-")wouldn't care where the template lives. to not get some weirdness withoutdirdifferences across systems..