Skip to content

Rebaseline DynamicFootprint test_2 for canonical GUL item order - #67

Merged
sstruzik merged 1 commit into
mainfrom
tests/dynamicfootprint-test2-canonical-item-order
Nov 25, 2026
Merged

sstruzik merged 1 commit into
mainfrom
tests/dynamicfootprint-test2-canonical-item-order

Conversation

@benhayes21

@benhayes21 benhayes21 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Rebaselines DynamicFootprint/tests/test_2 for OasisLMF/OasisLMF#2244, which assigns GUL item ids in a canonical order.

Important

Merge together with OasisLMF/OasisLMF#2244, not before. OasisLMF CI runs the model tests against OasisModels main, so merging this first makes DynamicFootprint/test_2 fail on OasisLMF main and every other PR until #2244 lands. This PR's own CI is expected to fail on DynamicFootprint/test_2 until OasisLMF/OasisLMF#2244 lands, because it runs against OasisLMF main.

Why the baseline changes

Summary ids are assigned in item order (oasislmf/preparation/summaries.py). #2244 numbers items by loc_id instead of keys row order, and loc_id comes from sorting (PortNumber, AccNumber, LocNumber) with LocNumber read as a string. The LocNumber summary ids for this test go from 1, 2, …, 18 to 1, 10, …, 18, 2, …, 9.

Losses are unchanged

The new files are the outputs from #2244's CI run (run 45281356637, py3.10 model-logs artifact). Matched to the previous baseline by LocNumber instead of SummaryId:

File Rows Max abs diff
gul_S1_selt.csv 1054 0.0 (Loss, ImpactedExposure)
gul_S1_palt.csv 36 0.0 (MeanLoss, SDLoss)
gul_S1_ept.csv 2792 0.0 (Loss)
gul_S1_summary-info.csv 18 same LocNumbers, same TIV each

analysis_settings.json is unchanged. Only test_2 has a LocNumber summary; test_1 (_not_set_, one summary id) passes on #2244 as is.

PiWindPostcode/test_3 on #2244 is handled separately by #66.

🤖 Generated with Claude Code

OasisLMF/OasisLMF#2244 numbers GUL items by loc_id instead of keys row
order. Summary ids follow item order, so this test's LocNumber summary
ids are renumbered (loc_id sorts LocNumber as a string: 1, 10..18, 2..9).
Losses are unchanged: matched by LocNumber, selt, palt and ept are
identical to the previous baseline, and so is the TIV for each location.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@benhayes21

Copy link
Copy Markdown
Contributor Author

Cross-repo CI: OasisLMF/OasisLMF#2244 ↔ #67

The PR-triggered model tests on these two PRs are expected to fail, because each repo's pull_request CI pins the other repo to main:

  • OasisLMF piwind-mdk.yml checks out OasisModels main, which has the old DynamicFootprint/test_2 summary-id order, so #2244 fails there.
  • OasisModels model-tests.yml installs oasislmf from main, which doesn't have the canonical item order yet, so the four files Rebaseline DynamicFootprint test_2 for canonical GUL item order #67 rebaselines differ.

(#2244 also fails PiWindPostcode/test_3. That is a one-cent rounding flip that differs between runners, and #66 handles it with a cent tolerance in --check-results. #66 changes no baselines and passes on its own, so it isn't part of the circular dependency and can merge first.)

Validating before merge: both workflows take the other repo's branch as a workflow_dispatch input.

# OasisLMF fix against the new baselines
gh workflow run piwind-mdk.yml -R OasisLMF/OasisLMF \
  --ref fix/2211-canonical-item-order \
  -f oasis_models_branch=tests/dynamicfootprint-test2-canonical-item-order

# OasisModels baselines against the fix
gh workflow run model-tests.yml -R OasisLMF/OasisModels \
  --ref tests/dynamicfootprint-test2-canonical-item-order \
  -f oasislmf_branch=fix/2211-canonical-item-order

If #66 is merged first and #67 is rebased onto main, both runs should be fully green. Without that, PiWindPostcode/test_3 may still fail on some runners.

Suggested order:

  1. Merge Accept one-cent differences in --check-results and warn on inexact matches #66.
  2. Rebase Rebaseline DynamicFootprint test_2 for canonical GUL item order #67 and run the two dispatches above.
  3. Merge Rebaseline DynamicFootprint test_2 for canonical GUL item order #67, then merge #2244 straight after. OasisModels main CI is red between those two merges. Merging #2244 first would instead make every other OasisLMF PR fail until the baseline lands.

Dispatched runs may not count as the PRs' pull_request checks, so a re-run may be needed once both are merged.

@sstruzik
sstruzik merged commit 62a80be into main Nov 25, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants