Skip to content

ci: handle insufficient privileges in test suite#4170

Merged
wellwelwel merged 32 commits intosidorares:masterfrom
wellwelwel:debug
Mar 11, 2026
Merged

ci: handle insufficient privileges in test suite#4170
wellwelwel merged 32 commits intosidorares:masterfrom
wellwelwel:debug

Conversation

@wellwelwel
Copy link
Collaborator

@wellwelwel wellwelwel commented Mar 11, 2026

Closes #3918 by grouping and skipping tests that require permissions on users without root privileges (e.g., Aurora, RDS), for example:

Screenshot 2026-03-10 at 22 24 05

This PR also unifies test execution (parallel and sequential executions as a single flow) and reduces "noise" in package.json, in addition to indirectly increasing compatibility between different operating systems by using resources from the test runner itself:

Before

"test": "npm run test:parallel && npm run test:global",
"test:parallel": "poku -c=\"poku.config.mjs\" test",
"test:global": "cross-env SUITE=global poku -c=\"poku.config.mjs\" test/global",
"test:bun": "npm run test:bun:parallel && npm run test:bun:global",
"test:bun:parallel": "bun poku -c=\"poku.config.mjs\" test",
"test:bun:global": "cross-env SUITE=global bun poku -c=\"poku.config.mjs\" test/global",
"test:deno": "npm run test:deno:parallel && npm run test:deno:global",
"test:deno:parallel": "deno run --allow-read --allow-env --allow-run npm:poku -c=\"poku.config.mjs\" test",
"test:deno:global": "cross-env SUITE=global deno run --allow-read --allow-env --allow-run npm:poku -c=\"poku.config.mjs\" test/global",

Now

"test": "poku",
"test:bun": "bun poku",
"test:deno": "deno run -A npm:poku",

Note

Although the tasks are relatively distinct, one complements the other, so both are in the same PR 🙋🏻‍♂️

@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.44%. Comparing base (fa06903) to head (bdcaf4b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4170   +/-   ##
=======================================
  Coverage   90.44%   90.44%           
=======================================
  Files          86       86           
  Lines       13989    13989           
  Branches     1733     1733           
=======================================
  Hits        12653    12653           
  Misses       1336     1336           
Flag Coverage Δ
compression-0 89.69% <ø> (ø)
compression-1 90.42% <ø> (ø)
static-parser-0 88.09% <ø> (ø)
static-parser-1 88.83% <ø> (ø)
tls-0 89.87% <ø> (ø)
tls-1 90.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wellwelwel wellwelwel marked this pull request as ready for review March 11, 2026 08:00
@wellwelwel wellwelwel merged commit 97db1ee into sidorares:master Mar 11, 2026
88 checks passed
@wellwelwel wellwelwel deleted the debug branch March 11, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit Tests fail on Amazon RDS because SET GLOBAL statements are blocked

1 participant