Skip to content

test: tolerate condition column in ArchiveAsync as.data.table test#349

Merged
be-marc merged 1 commit into
mainfrom
fix-archive-async-condition-column
Jul 2, 2026
Merged

test: tolerate condition column in ArchiveAsync as.data.table test#349
be-marc merged 1 commit into
mainfrom
fix-archive-async-condition-column

Conversation

@be-marc

@be-marc be-marc commented Jul 2, 2026

Copy link
Copy Markdown
Member

When a task fails, rush adds a condition column to the archive data returned by as.data.table(ArchiveAsync) (via data_with_state(), whose fields include "condition"). The column-name check in test_ArchiveAsync.R used identical.to, which fails whenever a task happens to fail and the extra column appears.

This relaxes the check to ignore the optional condition column while still verifying the exact set and order of the remaining columns.

Same class of flakiness fixed in mlr3tuning. Checked mlr3mbo and mlr3hyperband too: their async archive tests already use tolerant must.include checks (or access individual columns), so no changes are needed there.

🤖 Generated with Claude Code

A failed task adds a "condition" column to the archive data, so the
column-name check must ignore it to avoid spurious failures.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@be-marc be-marc merged commit 905901b into main Jul 2, 2026
6 checks passed
@be-marc be-marc deleted the fix-archive-async-condition-column branch July 2, 2026 15:46
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