Skip to content

test: ignitionFirePoints is a SpatVector in the metadata snapshot - #20

Merged
eliotmcintire merged 1 commit into
developmentfrom
fix/metadata-snapshot-spatvector
Sep 11, 2026
Merged

eliotmcintire merged 1 commit into
developmentfrom
fix/metadata-snapshot-spatvector

Conversation

@eliotmcintire

Copy link
Copy Markdown
Collaborator

Problem

testthat-module has been red on development since #14 merged (run 34554356193):

── 1. Failure ('test-metadata.R:18:3'): inputs are the expected names and classes
1/22 mismatches
x[7]: "SpatVector"
y[7]: "sf"

── 2. Failure ('test-metadata.R:48:3'): outputs are the expected names and classes
1/34 mismatches
x[14]: "SpatVector"
y[14]: "sf"

#15 ("ignitionFirePoints is a SpatVector, not sf") deliberately changed expectsInput("ignitionFirePoints") and createsOutput("ignitionFirePoints") to "SpatVector". The metadata snapshot in tests/testthat/test-metadata.R came from #14, which was generated before #15. #14's checks passed because they ran against the pre-#15 base; re-running a check reuses the original merge ref, so it never saw #15.

The test was doing its job: it caught a change to the module's contract.

Change

The two ignitionFirePoints entries in the snapshot, "sf" → "SpatVector". Nothing else in the snapshot changed; the failure shows exactly one mismatch in each vector.

Open PRs #16, #17 and #18 also edit fireSense_dataPrepFit.R. If any of them changes an input, output or parameter, its checks will now flag that until the snapshot is updated in the same PR, which is what the test is for.

🤖 Generated with Claude Code

https://claude.ai/code/session_0133867aFrmKtbhpNXasToP9

#15 changed expectsInput("ignitionFirePoints") and createsOutput() from "sf"
to "SpatVector". test-metadata.R was generated before that and still asserted
"sf", so testthat-module has failed on development since #14 merged (run
34554356193): exactly one mismatch in the inputs and one in the outputs.

#14's own checks were green because they ran against the pre-#15 base, and
re-running them reused that merge ref.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0133867aFrmKtbhpNXasToP9
@eliotmcintire
eliotmcintire merged commit 16066b0 into development Sep 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant