Skip to content

Scope the encrypted key test to the VM - #239

Merged
vicajilau merged 1 commit into
mainfrom
ci/teston-vm-encrypted-key-test
Aug 30, 2026
Merged

Scope the encrypted key test to the VM#239
vicajilau merged 1 commit into
mainfrom
ci/teston-vm-encrypted-key-test

Conversation

@vicajilau

Copy link
Copy Markdown
Owner

main is red. The test-web job has failed on every commit since #235 landed.

test/src/ssh_key_pair_encrypt_test.dart imports dart:io for its ssh-keygen interoperability checks and for writing the key file with restricted permissions, but it never got the @TestOn('vm') marker that the other VM-only suites carry, so the web job #230 added cannot even load it:

Failed to load "test/src/ssh_key_pair_encrypt_test.dart": Unsupported operation: _Namespace

Confirmed on f0e44e8 (the #235 merge) and reproducing on everything after it. Nothing about the test itself changes here, it is only scoped, with a comment saying why so nobody removes the marker later.

Verified against the 3.13.2 SDK the runners use: Chrome back to 325 passing, VM unaffected at 664, dart format and dart analyze --fatal-infos clean.

main is red. #235 added a test that uses dart:io for its ssh-keygen
interoperability checks and for writing the key with restricted
permissions, without the @teston('vm') marker the rest of the VM-only
suites carry, so the web job #230 added fails loading it:

    Failed to load "test/src/ssh_key_pair_encrypt_test.dart":
    Unsupported operation: _Namespace

Nothing about the test changes, it is only scoped. Chrome goes back to
325 passing and the VM suite is unaffected at 664.
@vicajilau
vicajilau enabled auto-merge August 30, 2026 18:01
@vicajilau
vicajilau merged commit 1063a3b into main Aug 30, 2026
4 checks passed
@vicajilau
vicajilau deleted the ci/teston-vm-encrypted-key-test branch August 30, 2026 18:02
@codecov

codecov Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.68%. Comparing base (975bc24) to head (5bb0e04).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #239   +/-   ##
=======================================
  Coverage   75.68%   75.68%           
=======================================
  Files          81       81           
  Lines        6316     6316           
=======================================
  Hits         4780     4780           
  Misses       1536     1536           
Flag Coverage Δ
unittests 75.68% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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