Skip to content

fix: use the shared driver fixture for network assertions (repairs consumer-smoke) - #26

Merged
saqibmanan merged 1 commit into
CIfrom
fix/network-driver-use-shared-fixture
Sep 3, 2026
Merged

fix: use the shared driver fixture for network assertions (repairs consumer-smoke)#26
saqibmanan merged 1 commit into
CIfrom
fix/network-driver-use-shared-fixture

Conversation

@saqibmanan

Copy link
Copy Markdown
Contributor

Repairs consumer-smoke, which #24 broke.

What happened

The tests in #24 built their own Chrome driver:

driver = webdriver.Chrome(options=opts)

That lets Selenium Manager resolve chromedriver, rather than webdriver_manager as conftest.py does. On the CI runner it picked a mismatched driver:

SessionNotCreatedException: This version of ChromeDriver only supports Chrome version 155
Current browser version is 152.0.7977.64

All four parametrised cases errored, consumer-smoke failed, and promote-dev was skipped — so that release was never marked last-known-good.

Why #24 was green

The smoke workflow checks out ref: CI. When #24's checks ran, CI did not yet contain these tests, so they never executed. The first run that actually exercised them was the following DataSpaceFrontend deploy.

Same pinned-checkout behaviour noted in #20 — a PR's own checks do not test that PR's content.

Fix

The real cause was duplicating driver construction. conftest.py resolves chromedriver carefully — ChromeDriverManager().install(), then locating and chmod-ing the real binary — and none of that applied to a hand-rolled second fixture.

  • move the performance log capability into the shared driver fixture
  • delete the bespoke fixture; the tests now take driver like every other test
  • drop enable_network_logging, which no longer has a caller

Chromedriver resolution now lives in exactly one place.

Verified

tests/consumer/smoke40 passed, 0 errors (was 32 passed, 4 errors).

The tests added in #24 built their own Chrome driver with a bare
webdriver.Chrome(options=...), which let Selenium Manager resolve
chromedriver instead of webdriver_manager. On the CI runner that
produced a version mismatch - "ChromeDriver only supports Chrome 155,
current browser is 152" - and all four errored.

They errored in the DataSpaceFrontend deploy, not on their own PR: the
smoke workflow checks out `ref: CI`, so #24's checks ran against a CI
branch that did not yet contain these tests. The first run that
exercised them was the next deploy, where consumer-smoke failed and
promote-dev was skipped.

Root cause was duplicating driver construction. conftest resolves
chromedriver carefully - webdriver_manager, then locating and chmod'ing
the real binary - and none of that applied to a second, hand-rolled
fixture.

Moves the performance log capability into the shared fixture and deletes
the bespoke one, so chromedriver resolution stays in exactly one place.
enable_network_logging is dropped as it no longer has a caller.

Verified: tests/consumer/smoke now runs 40 passed, 0 errors.
@saqibmanan
saqibmanan merged commit 5203b66 into CI Sep 3, 2026
2 of 3 checks passed
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