Skip to content

Move dubna: Firefox add-ons only, with its check, its browser test and Chromium's extension API tests - #153

Merged
zakius merged 2 commits into
mainfrom
research/firefoxisms-gating
Nov 24, 2026
Merged

zakius merged 2 commits into
mainfrom
research/firefoxisms-gating

Conversation

@zakius

@zakius zakius commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Chrome Web Store extensions broke when climb steps changed shared extension code (Violentmonkey, #152), because nothing checked that a Firefox behaviour stayed with Firefox add-ons. This moves dubna to zakius/dubna#240, which makes everything the climb adds Firefox add-ons' alone, and runs its checks here:

  • dubna/tools/firefox_gates.py runs in the pre-commit hook and as the release workflow's first step. It needs no browser and takes about a second.
  • tools/e2e/test_firefox_add_ons_only.py, among the browser tests, runs one probe of each kind of mark in three extensions: a Chrome extension, a Firefox add-on, and a .crx with a gecko key from the Chrome Web Store's update server. The .crx has to see Chromium.
  • tools/e2e/chromium_tests.py runs Chromium's own extension API tests (api_test/ of the namespaces the climb touches, at helium/chromium_version.txt) as Chrome extensions, with --test-type and a shim that records each runTests() test. Chromium's tests lean on its C++ fixture, so --baseline runs them once in stock Helium of the same Chromium and writes dubna's chromium-tests.json. A normal run checks that what passed there passes here, and exits 3 on a drop, which stops the release until the test is fixed or its entry in the list has a "reason". The baseline runs each test three times and fails on one that passes only some of the time: FIXES edits such a race out of the test's copy, as for tabs/zoom, whose listener came after the tab it waited for. The release workflow runs the full list after the Firefox tests: 1.4 minutes. During a climb run, --only runs single tests.

Tested on a release build of this branch:

  • test_firefox_add_ons_only passes 3 of 3.
  • The ported Firefox tests show no drop: 28 of 102 files pass.
  • The 48 corpus add-ons with the most users keep their levels.
  • check-patches applies every patch with zero fuzz.
  • Chromium's tests: 404 of 404 pass.

Not run: tennessine's patch check (see zakius/dubna#240).

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

zakius and others added 2 commits November 24, 2026 13:05
…s extension API tests

firefox_gates.py runs in the pre-commit hook and the release workflow.
test_firefox_add_ons_only.py runs one probe of each kind of mark in a Chrome
extension, a Firefox add-on and a .crx with a gecko key. chromium_tests.py runs
Chromium's own extension API tests as Chrome extensions; the release stops on a
test that passes in stock Helium and fails here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the baseline, a failing one stops the release until it is fixed or has a reason

tabs/zoom's testZoomOnWebTab added its tabs.onUpdated listener after the tab it
waits for, and failed 3 of 5 times in stock Helium too: FIXES moves the
listener first in the test's copy. --baseline runs each test three times and
fails on what passed only some of the time; a test that fails in oganesson
stops the release until it is fixed or its entry has a reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zakius
zakius merged commit ba151d2 into main Nov 24, 2026
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