|
Ran
|
Jobs
5
|
Files
63
|
Run time
1min
|
Badge
README BADGES
|
push
github
fix(mql): send a detached request again when it is throttled (#97) * fix(mql): send a detached request again when it is throttled A load test of 1000 detached screenshots on one pro key ended 50 jobs with 429 ECONCURRENCY. The jobs had finished: API Gateway throttles the production stage at 320 req/s (burst 160) for every key together, and the polls of jobs queued in the same second all came due in the same second. mql.detached took the throttle for the outcome. - A 429 ECONCURRENCY is sent again, like EDETACHQUEUE, unless it is the error of a function (data.function), which is an outcome. - Every wait adds up to half of itself at random, so jobs queued together stop polling together. Retry-After stays the minimum. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(mql): advance the clock inside the last detach wait The test ticked the mocked clock after a fixed number of event loop turns. On a slower runner the tick landed before mql.detached reached its sleep, so it saw the deadline as passed and threw EDETACHPENDING, which blocked the release of #94. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit d1e608166) * test(mql): allow the jitter on top of a Retry-After date A date about 3 seconds ahead can now wait up to 4.5 seconds, past the old 4 second bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(mql): send the CI API key on every request to the live API The live tests used the free endpoint, whose daily quota CI runs out of, so they failed with ERATE. The workflows already export MICROLINK_API_KEY; the tests now pass it, and still use the free endpoint when it is not set. The url test checks the endpoint origin and snapshots only the query, so the snapshot holds either way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1054 of 1288 branches covered (81.83%)
Branch coverage included in aggregate %.
7 of 10 new or added lines in 1 file covered. (70.0%)
292 existing lines in 1 file now uncovered.5538 of 6625 relevant lines covered (83.59%)
38.63 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 3 |
47.44
|
0.93% | packages/mql/src/index.js |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 292 |
71.87
|
0.27% | packages/mql/dist/index.js |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | microlink.io - 47183244394.1 | 22 |
86.14
|
GitHub Action Run | |
| 2 | @microlink/mql - 47183244394.2 | 4 |
69.3
|
GitHub Action Run | |
| 3 | @microlink/google - 47183244394.3 | 2 |
100.0
|
GitHub Action Run | |
| 4 | @microlink/function - 47183244394.4 | 2 |
94.81
|
GitHub Action Run | |
| 5 | @microlink/mcp - 47183244394.5 | 33 |
97.28
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|