Repository navigation
Install buildingsync-measures-gem from GitHub; fail fast on missing measures - #38
Merged
JieXiong9119 merged 2 commits intoDec 3, 2026
Merged
Conversation
JieXiong9119
approved these changes
Dec 3, 2026
JieXiong9119
left a comment
Contributor
There was a problem hiding this comment.
Follow-up review changes
1. Unit CI installs external measures
ci.yml: the unit job now runsbundle exec rake measures:install_externalduring setup.- Why: once the sibling checkout was removed, the binder contract test in
hvac_target_binder_spec.rbstarted skipping silently, so mismatches between BOSS and the gem's measure arguments were no longer caught. - No cache step was added to the unit job.
install_externalre-checks out the pinnedrefon every run, so a cache would only save time.
2. Out-of-date installs are detected
ExternalMeasureRepoManager#verify_pinned_commitruns when OSWs are written (require_installed: true).- If a repo's
refis a full 40-character SHA, it compares the installedHEADinvendor/external_measures/<repo>with the pin. On a mismatch it stops with: "installed at X, but the manifest pins Y. Runbundle exec rake measures:install_external." - Why: after someone pulls a
refbump without reinstalling, the old checkout was used without any warning. The existing check only looks at whether measure folders exist, so changed arguments or behaviour went unnoticed. - Not checked:
local_pathrepos, and tag or branch refs.
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.
The L200 topology baseline needs the HVAC topology measures from
buildingsync-measures-gem. They were loaded from a local sibling checkout
(local_path ../../buildingsync-measures-gem), which BOSS only checked for
existence, and CI checked out a pinned commit next to BOSS.
Install the repo from GitHub with rake measures:install_external instead,
pinned to commit 6ee630f on the add-hvac_heating_with_terminal_cooling-measure
branch until the gem has a release. comstock is pinned too (a4ff2f9 on main),
so both external repos install the same code every time. It stays scenario_only, so fallback baselines don't
reference it.
switch back to local_path for local development
integration job already runs measures:install_external
short SHAs are rejected because
git fetch origin <ref>can't resolve them(resolved_measure_directories(require_installed: true)) or if a planned
topology measure is not in measure_paths, instead of writing an OSW that
fails at run time. rake measures:list_external still only warns.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com