Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Fix integration tests for extension/skin enable/disable - #737

Merged
yaronkoren merged 1 commit into
mainfrom
fix-integration-tests
Apr 15, 2026
Merged

Fix integration tests for extension/skin enable/disable#737
yaronkoren merged 1 commit into
mainfrom
fix-integration-tests

Conversation

@cicalese

Copy link
Copy Markdown
Contributor

Summary

  • Make the test wiki public via a generated zz-test-public.php in config/settings/global/, so the siteinfo API answers anonymous queries instead of returning readapidenied.
  • Replace the fixed Sleep + bounded-retry probe with waitForExtensionState / waitForSkinState helpers that poll until the expected state is observed (2 min timeout). This also catches silent disable false-positives that the old probe masked when the API returned an error body.

Test plan

  • go test -tags=integration -run TestExtensionSkin_EnableDisable ./tests/integration passes locally (~60s)

The TestExtensionSkin_EnableDisable test was failing in CI because the
siteinfo API query returned readapidenied on the private-by-default test
wiki, and the old fixed-sleep probing masked the failure for disable cases
(an empty response matched the "not present" expectation).

Two changes:

- Add zz-test-public.php to the instance's config/settings/global/ so
  anonymous reads are allowed, letting the siteinfo API respond normally.
- Replace Sleep + bounded-retry probes with waitForExtensionState /
  waitForSkinState helpers that poll until the expected state is observed
  or a 2-minute timeout elapses.
@yaronkoren
yaronkoren merged commit a45d683 into main Apr 15, 2026
2 checks passed
@yaronkoren
yaronkoren deleted the fix-integration-tests branch April 15, 2026 17:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants