From 67167809ce3bdbf22ac2f9ea4202b5f716d989c9 Mon Sep 17 00:00:00 2001 From: Dat Date: Fri, 9 Jan 2026 16:35:02 +0100 Subject: [PATCH 1/2] Change every reference to mw1.43-wbs1 to mw1.43-wbs2 Bug: T412133 --- config/mw-db-version-map.php | 2 +- config/wbstack.php | 4 ++-- tests/Routes/Backend/MediaWikiHostsControllerTest.php | 2 +- tests/Routes/Backend/WikiDbVersionControllerTest.php | 2 +- tests/Services/MediaWikiHostResolverTest.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/mw-db-version-map.php b/config/mw-db-version-map.php index c74cb9388..ff315be65 100644 --- a/config/mw-db-version-map.php +++ b/config/mw-db-version-map.php @@ -2,7 +2,7 @@ // TODO: Read from outside of this codebase so that MW updates do not require code changes here. $versionMap = [ - 'mw1.43-wbs1' => '143', + 'mw1.43-wbs2' => '143', ]; return $versionMap; diff --git a/config/wbstack.php b/config/wbstack.php index e5bf87b4c..25d4bcb2b 100644 --- a/config/wbstack.php +++ b/config/wbstack.php @@ -5,8 +5,8 @@ 'ui_url' => env('WBSTACK_UI_URL', 'https://wbstack.com'), - 'wiki_db_provision_version' => env('WBSTACK_WIKI_DB_PROVISION_VERSION', 'mw1.43-wbs1'), - 'wiki_db_use_version' => env('WBSTACK_WIKI_DB_USE_VERSION', 'mw1.43-wbs1'), + 'wiki_db_provision_version' => env('WBSTACK_WIKI_DB_PROVISION_VERSION', 'mw1.43-wbs2'), + 'wiki_db_use_version' => env('WBSTACK_WIKI_DB_USE_VERSION', 'mw1.43-wbs2'), 'wiki_hard_delete_threshold' => env('WBSTACK_HARD_DELETE_THRESHOLD', 30), 'wiki_max_per_user' => env('WBSTACK_MAX_PER_USER', false), diff --git a/tests/Routes/Backend/MediaWikiHostsControllerTest.php b/tests/Routes/Backend/MediaWikiHostsControllerTest.php index 7bba11c86..01d0fa96c 100644 --- a/tests/Routes/Backend/MediaWikiHostsControllerTest.php +++ b/tests/Routes/Backend/MediaWikiHostsControllerTest.php @@ -21,7 +21,7 @@ public function testSuccess() { ]; $this->createWiki('test139.wikibase.cloud', 'mw1.39-wbs1'); - $this->createWiki('test143.wikibase.cloud', 'mw1.43-wbs1'); + $this->createWiki('test143.wikibase.cloud', 'mw1.43-wbs2'); $this->getJson("$this->route?domain=test143.wikibase.cloud") ->assertStatus(200) diff --git a/tests/Routes/Backend/WikiDbVersionControllerTest.php b/tests/Routes/Backend/WikiDbVersionControllerTest.php index 6be65e965..76782de71 100644 --- a/tests/Routes/Backend/WikiDbVersionControllerTest.php +++ b/tests/Routes/Backend/WikiDbVersionControllerTest.php @@ -12,7 +12,7 @@ class WikiDbVersionControllerTest extends TestCase { const VALID_WIKI_DB_VERSION_STRING_139 = 'mw1.39-wbs1'; - const VALID_WIKI_DB_VERSION_STRING_143 = 'mw1.43-wbs1'; + const VALID_WIKI_DB_VERSION_STRING_143 = 'mw1.43-wbs2'; protected $route = '/backend/setWikiDbVersion'; diff --git a/tests/Services/MediaWikiHostResolverTest.php b/tests/Services/MediaWikiHostResolverTest.php index e5f8da810..cc4dfcff2 100644 --- a/tests/Services/MediaWikiHostResolverTest.php +++ b/tests/Services/MediaWikiHostResolverTest.php @@ -15,7 +15,7 @@ class MediaWikiHostResolverTest extends TestCase { public function testResolverRoutesToCorrectHost(): void { $domain = (new Factory)->create()->unique()->text(30); - $this->createWiki($domain, 'mw1.43-wbs1'); + $this->createWiki($domain, 'mw1.43-wbs2'); $resolver = new MediaWikiHostResolver; $this->assertEquals( 'mediawiki-143-app-backend.default.svc.cluster.local', From e0b84b2a0ff4b78779bbd8b8c5c72f8b811a2d45 Mon Sep 17 00:00:00 2001 From: Dat Date: Fri, 9 Jan 2026 18:01:19 +0100 Subject: [PATCH 2/2] add mw1.43-wbs1 to version map --- config/mw-db-version-map.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/mw-db-version-map.php b/config/mw-db-version-map.php index ff315be65..e32cc918e 100644 --- a/config/mw-db-version-map.php +++ b/config/mw-db-version-map.php @@ -2,7 +2,8 @@ // TODO: Read from outside of this codebase so that MW updates do not require code changes here. $versionMap = [ - 'mw1.43-wbs2' => '143', + 'mw1.43-wbs1' => '143', + 'mw1.43-wbs2' => '143' ]; return $versionMap;