Skip to content

test: Record legacy-matrix deprecation snapshots under lifecycle errors - #3056

Merged
schochastics merged 1 commit into
mainfrom
fix-legacy-matrix-snapshot-lifecycle
Dec 4, 2026
Merged

schochastics merged 1 commit into
mainfrom
fix-legacy-matrix-snapshot-lifecycle

Conversation

@schochastics

Copy link
Copy Markdown
Contributor

The rcc: ubuntu-26.04 (4.6) with lifecycle errors job fails on two snapshot tests from #2700:

  • test-interface.R: "add_edges warning for legacy matrices"
  • test-make.R: "make_graph() warning for legacy matrices"

With IGRAPH_LIFECYCLE_ERRORS=true, setup-lifecycle.R turns deprecations into errors, so the warning these tests snapshot is raised as an error instead. Both tests now set rlang::local_options(lifecycle_verbosity = "warning"), the escape hatch documented in setup-lifecycle.R and used by the other deprecation snapshot tests. The snapshots themselves are unchanged.

Checked locally: IGRAPH_LIFECYCLE_ERRORS=true, devtools::test(filter = "^(interface|make)$") passes.

🤖 Generated with Claude Code

The snapshot tests for the legacy edge-matrix deprecation added in #2700
lacked the `lifecycle_verbosity = "warning"` escape hatch, so the
`IGRAPH_LIFECYCLE_ERRORS=true` rcc job turned the warning into an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schochastics
schochastics enabled auto-merge (squash) December 3, 2026 21:07
auto-merge was automatically disabled December 3, 2026 21:55

Repository rule violations found

@schochastics
schochastics merged commit 82612f0 into main Dec 4, 2026
9 checks passed
@schochastics
schochastics deleted the fix-legacy-matrix-snapshot-lifecycle branch December 4, 2026 05:55
schochastics added a commit to schochastics/rigraph that referenced this pull request Dec 4, 2026
…rs (igraph#3056)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 82612f0)
schochastics added a commit to schochastics/rigraph that referenced this pull request Dec 4, 2026
…rs (igraph#3056)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 82612f0)
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