Repository navigation
fix(ci): the BIM4LCA fetcher checks the files it has before asking the host (#766) - #791
Merged
Merged
Conversation
…e host (#766) fetch-bim4lca.py read the archive's central directory before looking at target_dir, so every tier-two run asked VTT's host even when the cache had restored all five files. With the host down the four targets skipped though their files were there, and an archive replaced on the host would have failed CI passed on every pull request with good files in hand. The files in place are now checked against their pins first, and the host is asked only for the ones missing or wrong. A stale pin's message names the pins file it was given rather than always research/bim4lca-models.tsv.
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/ci/fetch-bim4lca.pychecks the files already in its target directory before asking VTT's host for anything, so a cache-restored run never contacts the host (#766, follow-up to #789).Motivation
The fetcher read the archive's central directory first, so every tier-two run asked VTT's host, even when the cache had restored all five files.
CI passedon a stale pin, with good files in hand.Changes
--pinmode is unchanged.research/bim4lca-models.tsv(Measure passesresearch/bim4lca-measure.tsv).Testing
[ok]and exited 0 without a request. With the entry deleted, it went to the host and was still retrying when stopped.main's cache and printed five[ok]lines and no[fetch], so it made no request to the host. The four targets ran and passed:column_node_z,column_cut_body,level_shared_elevationandlevel_parameters.Breaking changes
None.
Note
Low Risk
CI fetch-script behavior only; no runtime product code, with clearer offline/cache-hit paths and a small error-message fix.
Overview
fetch-bim4lca.pynow verifies cached files before touching the archive host, so tier-two CI can succeed when VTT is down or pins are stale but the restored cache already has valid models.In normal fetch mode, the script walks pinned entries locally (size + sha256), prints
[ok]for matches, and returns 0 immediately if nothing is missing—central_directory/ range requests run only for gaps.--pinstill hits the host up front to read the central directory. Stale-pin errors now tell you to re-pin the actual pins file passed on the CLI (e.g.bim4lca-measure.tsv), not a hardcoded path.Reviewed by Cursor Bugbot for commit 1626e8d. Configure here.