Fix incorrect PASS status when all contexts are skipped #368
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tests were incorrectly marked as PASS when all their contexts were skipped due to platform/browser incompatibility, creating false positives in test reports.
Root Cause
Context results used inconsistent types:
{ status: "SKIPPED" }(object)"PASS","FAIL","SKIPPED"(string)Test result aggregation logic used string comparison (
context.result === "SKIPPED"), which failed for object results, causing tests to default to PASS.Changes
"SKIPPED"instead of object{ status: "SKIPPED" }resultDescriptionfield to maintain consistencytest/artifacts/output/directoryExample
Before:
After:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
accounts.google.com/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --use-angle=swiftshader-webgl --crashpad-handler-pid=3651 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.yaWICA --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,2913513491401440591,2411595973271585913,262144 --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708989122997041 --enable-logging --log-level=0(dns block)/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --allow-pre-commit-input --auto-select-desktop-capture-source=RECORD_ME --disable-REDACTED-networking --disable-client-side-phishing-detection --disable-default-apps --disable-features=IgnoreDuplicateNavs,Prewarm --disable-gpu --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-automation --enable-chrome-browser-cloud-management --enable-logging --headless --log-level=0 --no-first-run --no-sandbox --no-service-autorun --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.yaWICA --noerrdialogs --ozone-platform=headless --ozone-override-screen-size=800,600 --use-angle=swiftshader-webgl data:,(dns block)/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --use-angle=swiftshader-webgl --crashpad-handler-pid=9274 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.oyHA3L --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,13501584547293152914,8236781060677532180,262144 --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708989122997041 --enable-logging --log-level=0(dns block)ads.mozilla.org/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofile4wGNIR(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileT5ngTn(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileRdxEoK(dns block)app.posthog.comnode /home/REDACTED/work/core/core/node_modules/.bin/mocha test/core.test.js(dns block)node /tmp/reproduce-issue.js(dns block)clients2.google.com/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --use-angle=swiftshader-webgl --crashpad-handler-pid=3651 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.yaWICA --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,2913513491401440591,2411595973271585913,262144 --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708989122997041 --enable-logging --log-level=0(dns block)/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --allow-pre-commit-input --auto-select-desktop-capture-source=RECORD_ME --disable-REDACTED-networking --disable-client-side-phishing-detection --disable-default-apps --disable-features=IgnoreDuplicateNavs,Prewarm --disable-gpu --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-automation --enable-chrome-browser-cloud-management --enable-logging --headless --log-level=0 --no-first-run --no-sandbox --no-service-autorun --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.yaWICA --noerrdialogs --ozone-platform=headless --ozone-override-screen-size=800,600 --use-angle=swiftshader-webgl data:,(dns block)/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --use-angle=swiftshader-webgl --crashpad-handler-pid=9274 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.oyHA3L --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,13501584547293152914,8236781060677532180,262144 --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708989122997041 --enable-logging --log-level=0(dns block)detectportal.firefox.com/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofile4wGNIR(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofile6yuiTo(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileT5ngTn(dns block)doc-detective.com/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileXiGEv0(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofilerZ3yiP(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileqWd4Y5(dns block)duckduckgo.com/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileKi8O2t(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofile9xkCDp(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofile9A2GfI(dns block)fonts.googleapis.com/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileT5ngTn(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileRdxEoK(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileEkkaYw(dns block)google.com/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --use-angle=swiftshader-webgl --crashpad-handler-pid=3651 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.yaWICA --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,2913513491401440591,2411595973271585913,262144 --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708989122997041 --enable-logging --log-level=0(dns block)/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --use-angle=swiftshader-webgl --crashpad-handler-pid=9274 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.oyHA3L --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,13501584547293152914,8236781060677532180,262144 --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708989122997041 --enable-logging --log-level=0(dns block)/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --use-angle=swiftshader-webgl --crashpad-handler-pid=14590 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.viAiYl --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,17551932443807437963,8083423237786817116,262144 --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708989122997041 --enable-logging --log-level=0(dns block)incoming.telemetry.mozilla.org/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofile4wGNIR(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileT5ngTn(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofilebDg0Au(dns block)kennethreitz.org/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileT5ngTn(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileRdxEoK(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileEkkaYw(dns block)prod.ohttp-gateway.prod.webservices.mozgcp.net/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofile4wGNIR(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofile6yuiTo(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileT5ngTn(dns block)spocs.getpocket.com/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofilebDg0Au(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileRdxEoK(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileXiGEv0(dns block)support.mozilla.org/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofile4wGNIR(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileXiGEv0(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileaL4Sk6(dns block)www.doc-detective.com/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileXiGEv0(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofilerZ3yiP(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileqWd4Y5(dns block)www.duckduckgo.com/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileaL4Sk6(dns block)/home/REDACTED/work/core/core/browser-snapshots/firefox/linux-nightly_146.0a1/firefox/firefox --marionette --headless -no-remote -profile /tmp/rust_mozprofileKi8O2t(dns block)node /home/REDACTED/work/core/core/node_modules/.bin/mocha test/core.test.js(dns block)www.google.comnode /home/REDACTED/work/core/core/node_modules/.bin/mocha test/core.test.js(dns block)/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --use-angle=swiftshader-webgl --crashpad-handler-pid=3651 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.yaWICA --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,2913513491401440591,2411595973271585913,262144 --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708989122997041 --enable-logging --log-level=0(dns block)/home/REDACTED/work/core/core/browser-snapshots/chrome/linux-142.0.7444.59/chrome-linux64/chrome --allow-pre-commit-input --auto-select-desktop-capture-source=RECORD_ME --disable-REDACTED-networking --disable-client-side-phishing-detection --disable-default-apps --disable-features=IgnoreDuplicateNavs,Prewarm --disable-gpu --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-automation --enable-chrome-browser-cloud-management --enable-logging --headless --log-level=0 --no-first-run --no-sandbox --no-service-autorun --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir=/tmp/.org.chromium.Chromium.scoped_dir.yaWICA --noerrdialogs --ozone-platform=headless --ozone-override-screen-size=800,600 --use-angle=swiftshader-webgl data:,(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.