]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-153313: Run Emscripten PyRepl test in CI (GH-153701) (#153728)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Jul 2026 01:42:54 +0000 (03:42 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2026 01:42:54 +0000 (01:42 +0000)
Adds the PyRepl test to the Github CI configuration for Emscripten.
(cherry picked from commit 1b3914ab3d29bba00effe3d58145498efcbeca93)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
.github/workflows/reusable-emscripten.yml
Platforms/emscripten/browser_test/package-lock.json
Platforms/emscripten/browser_test/package.json
Platforms/emscripten/browser_test/run_test.sh

index c14a41b568287794c91f278cbc7c70d3c98f59f9..b15169164572b4b4d0668c67d6fa54a59444d114 100644 (file)
@@ -77,3 +77,5 @@ jobs:
       run: python3 Platforms/emscripten pythoninfo-host
     - name: "Test"
       run: python3 Platforms/emscripten run --test
+    - name: "Test Repl"
+      run: Platforms/emscripten/browser_test/run_test.sh
index 978aea0147bc28063d97f7ea8df0868d5cc8976e..67acfba9daf62eac450703083134dca8639a502b 100644 (file)
@@ -9,11 +9,11 @@
       "version": "1.0.0",
       "license": "ISC",
       "dependencies": {
-        "@playwright/test": "^1.54.1",
+        "@playwright/test": "^1.61.1",
         "@types/node": "^24.12.0",
         "get-port-cli": "^3.0.0",
         "http-server": "^14.1.1",
-        "playwright": "^1.54.1"
+        "playwright": "^1.61.1"
       }
     },
     "node_modules/@babel/code-frame": {
       }
     },
     "node_modules/@playwright/test": {
-      "version": "1.58.2",
-      "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.58.2.tgz",
-      "integrity": "sha512-akea+6bHYBBfA9uQqSYmlJXn61cTa+jbO87xVLCWbTqbWadRVmhxlXATaOjOgcBaWU4ePo0wB41KMFv3o35IXA==",
+      "version": "1.61.1",
+      "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.61.1.tgz",
+      "integrity": "sha512-8nKv6+0RJSL9FE4jYOEGXnPeM/Hg12qZpmqzZjRh3qM0Y7c3z1mrOTfFLids72RDQYVh9WpLEfR5WdpNX4fkig==",
       "license": "Apache-2.0",
       "dependencies": {
-        "playwright": "1.58.2"
+        "playwright": "1.61.1"
       },
       "bin": {
         "playwright": "cli.js"
       "license": "ISC"
     },
     "node_modules/playwright": {
-      "version": "1.58.2",
-      "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.58.2.tgz",
-      "integrity": "sha512-vA30H8Nvkq/cPBnNw4Q8TWz1EJyqgpuinBcHET0YVJVFldr8JDNiU9LaWAE1KqSkRYazuaBhTpB5ZzShOezQ6A==",
+      "version": "1.61.1",
+      "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.61.1.tgz",
+      "integrity": "sha512-DWnY5o3YbLWK4GovuAVwpqL+1VwGNdUGrRr++8j8PtQQzvAVZUIMjKQ90fY689sEJZJBbZVw1rXaOKSTitkzPQ==",
       "license": "Apache-2.0",
       "dependencies": {
-        "playwright-core": "1.58.2"
+        "playwright-core": "1.61.1"
       },
       "bin": {
         "playwright": "cli.js"
       }
     },
     "node_modules/playwright-core": {
-      "version": "1.58.2",
-      "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.58.2.tgz",
-      "integrity": "sha512-yZkEtftgwS8CsfYo7nm0KE8jsvm6i/PTgVtB8DL726wNf6H2IMsDuxCpJj59KDaxCtSnrWan2AeDqM7JBaultg==",
+      "version": "1.61.1",
+      "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.61.1.tgz",
+      "integrity": "sha512-h7Qlt6m4REp25qvIdvbDtVmD4LqVXfpRxhORv9L0jzETM05p4fuPJ3dKyuSXQxDSbXnmS79HAgi9589lGSpLkg==",
       "license": "Apache-2.0",
       "bin": {
         "playwright-core": "cli.js"
index 540c9b8034e7c76fc5ace6abd78342f744332f47..fc8e1ce33975ef6069c97e9a304e818b87647888 100644 (file)
   "license": "ISC",
   "description": "",
   "dependencies": {
-    "@playwright/test": "^1.54.1",
+    "@playwright/test": "^1.61.1",
     "@types/node": "^24.12.0",
     "get-port-cli": "^3.0.0",
     "http-server": "^14.1.1",
-    "playwright": "^1.54.1"
+    "playwright": "^1.61.1"
   }
 }
index cc89b3a91607ed96dcd834119522e30a40fddf9c..da6e24cba2e3c9e6fada5bcd0e331ca182612866 100755 (executable)
@@ -2,10 +2,12 @@
 set -euo pipefail
 cd "$(dirname "$0")"
 rm -f test_log.txt
-echo "Installing node packages" | tee test_log.txt
+echo "Installing node packages" | tee -a test_log.txt
 npm ci >> test_log.txt 2>&1
-echo "Installing playwright browsers" | tee test_log.txt
+echo "Installing playwright browsers" | tee -a test_log.txt
 npx playwright install 2>> test_log.txt
-export PORT=$(npx get-port-cli)
-echo "Running tests with webserver on port $PORT" | tee test_log.txt
-CI=1 npx playwright test | tee test_log.txt
+# Disable color so FORCE_COLOR=1 (set in CI) doesn't wrap the port number in
+# ANSI escape codes, which would produce an invalid baseURL in Playwright.
+export PORT=$(FORCE_COLOR=0 npx get-port-cli)
+echo "Running tests with webserver on port $PORT" | tee -a test_log.txt
+CI=1 npx playwright test | tee -a test_log.txt