Skip to content

ci: avoid azure mirrors if possible#9232

Merged
janl merged 1 commit intoapache:masterfrom
neighbourhoodie:ci-use-ubuntu-mirrors
Apr 14, 2026
Merged

ci: avoid azure mirrors if possible#9232
janl merged 1 commit intoapache:masterfrom
neighbourhoodie:ci-use-ubuntu-mirrors

Conversation

@espy
Copy link
Copy Markdown
Contributor

@espy espy commented Apr 14, 2026

Overview

Avoid the Azure Ubuntu mirrors if possible, since they can slow down CI immensely. Other project also do this, this particular PR is inspired by: servo/servo#39190

I've added this change directly in the bin/run-test.sh file just before we install Playwright, which is where all these dependencies come from. We previously tried doing this in the GH workflow yaml, but that didn’t take, maybe this approach is better.

This PR also reverts my previous attempt at speeding this process up by installing fewer dependencies for Playwright, but that turned out to not have any effect.

Testing recommendations

Trigger a CI run and compare it to a master run at about the same time of day (important!). The speed of the Azure mirrors fluctuates a lot.

Measurements

1. Comparison against apache/pouchdb master:

Today 11:58 CEST (master) -> 11:43 CEST (this branch)
👉 44m 23s -> 14m 44s

Slowest tests compared:

browser-adapter (firefox, idb, TYPE=mapreduce npm test)
18m 45s -> 1m 21s
browser-adapter (firefox, memory, TYPE=find PLUGINS=pouchdb-find npm test)
41m 35s -> 1m 16s
browser-adapter (chromium, memory, npm test)
43m 57s -> 3m 43s
browser-adapter (chromium, indexeddb, TYPE=find PLUGINS=pouchdb-find npm test)
38m 14s -> 1m 6s
browser-adapter (firefox, idb, npm test)
21m 57s -> 5m 21s

2. Comparison against an unimproved branch:

Today at 10:35 AM CEST (unimproved branch on our fork) -> 11:43 AM CEST (this branch)
👉 47m 39s -> 14m 44s

Slowest tests compared:

couchdb-browser (3.1, firefox, TYPE=mapreduce ADAPTERS=http npm test)
21m 19s -> 1m 35s
browser-adapter (firefox, idb, npm test)
22m 35s -> 5m 21s
browser-adapter (webkit, memory, TYPE=find PLUGINS=pouchdb-find npm test)
18m 28s -> 1m 21s
browser-adapter (firefox, idb, TYPE=find PLUGINS=pouchdb-find npm test)
47m 8s -> 2m 7s

Checklist

  • I am not a bot
  • This is my own work, I did not use AI, LLM's or similar technology for code or docs generation
  • Code is written and works correctly
  • Changes are covered by tests -> Not applicable
  • Documentation changes were made in the docs folder -> Not applicable

@espy
Copy link
Copy Markdown
Contributor Author

espy commented Apr 14, 2026

CI for this branch only took 6m 35s compared to about 40m for other branches and master in the past 2 hours 🥳

@janl janl force-pushed the ci-use-ubuntu-mirrors branch from 0b311e2 to dee6b5b Compare April 14, 2026 11:25
@janl janl merged commit 25a5bb4 into apache:master Apr 14, 2026
87 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.

2 participants