Commit graph

4628 commits

Author SHA1 Message Date
Christopher Willis-Ford
e2f96762de test(clone-cleanup): go back to using an SB2
Part of the motivation for this test is to verify compatibility with
Scratch 2.0 / SB2 behavior, so we shouldn't change the project to an SB3
file without very good reason.
2022-06-10 10:14:17 -07:00
Christopher Willis-Ford
43bcf60c97 ci: remove Travis config 2022-06-07 14:55:38 -07:00
Christopher Willis-Ford
d8fc81a8b5 test(execute): try to make 'execute' test more reliable 2022-06-07 14:55:38 -07:00
Christopher Willis-Ford
8263893c5b ci: add GH Pages deploy and the i18n cron job
All non-cron builds deploy to GH Pages, but only release branches
generate actual releases on npm / GH. Hotfix branches are considered
release branches and should be released under the `hotfix` tag on npm.
2022-06-07 14:55:24 -07:00
Christopher Willis-Ford
52252bd1cb test(wait): make the wait block test reliable under CPU load
Sometimes load causes the VM to run more slowly, especially with
parallel tests. This change allows the wait block a little extra wiggle
room to account for that. Ending early is still tested with a fairly
strict threshold.
2022-06-07 11:44:06 -07:00
Christopher Willis-Ford
840ffb5df0 test: don't use process.exit to end tests
Newer versions of `tap` run more asynchronously, so sometimes using `process.nextTick(process.exit)`
to end a test would prevent the test from completing correctly. Removing all instances of
`process.nextTick(process.exit)` put tests into three categories:
* the test still worked correctly -- no fixup needed.
* the test would hang because the VM's `_steppingInterval` was keeping
  Node alive. These tests call a new `quit()` method which ends the
  stepping interval.
* the `load-extensions` test needed special attention because the "Video
  Sensing" extension starts its own loop using `setTimeout`. I added a
  `_stopLoop()` method on the extension and directly call that from the
  test. I'm not completely happy with this solution but anything more
  general would likely require a change to the extension spec, so I'm
  leaving that as a followup task.
2022-06-07 11:44:06 -07:00
Christopher Willis-Ford
605b1c2386 test(clone-cleanup): improve clone-cleanup test reliability
Previously the test relied on the project's `wait` blocks running at roughly real time. Now, the
project drives the timing using `say` blocks.
2022-06-07 11:44:06 -07:00
Christopher Willis-Ford
05f8692300 test: upgrade tap, configure coverage thresholds
As part of simplifying the CI setup I plan to not explicitly specify
`--jobs=4` to `tap` going forward. Upgrading to a newer version of `tap`
means that it will automatically parallelize jobs according to available
CPU count, which should be better anyway. Only one of our tests was
incompatible with newer versions of `tap`, so this commit includes a
compatibility fix there.

Also, by default newer versions of `tap` calculate coverage and consider
the test run to fail if below the configured thresholds. The default is
100% coverage and we're not there, so I adjusted the thresholds to match
where we're at for now. We can ratchet those up over time.
2022-06-07 11:44:06 -07:00
Christopher Willis-Ford
c2c66a68d6 ci: add initial CircleCI config
This doesn't yet handle hotfixes or cron jobs
2022-06-07 11:44:06 -07:00
Christopher Willis-Ford
5cea05b8e8 chore: add semantic-release settings 2022-06-07 11:44:06 -07:00
Christopher Willis-Ford
3cccbe1cd5 chore: add Commitizen settings 2022-06-07 11:44:05 -07:00
Christopher Willis-Ford
bb47165dfd chore: add husky hook for commitlint 2022-06-07 11:44:05 -07:00
Christopher Willis-Ford
dfd70e06c7 chore: add commitlint 2022-06-07 11:44:05 -07:00
Christopher Willis-Ford
5266c84c0e chore(deps): upgrade lockfileVersion
Also fix devDependencies order (`jsdoc` was out of place)
2022-06-07 11:43:52 -07:00
renovate[bot]
67d9b9793c
Merge pull request #3676 from LLK/renovate/scratch-l10n-3.x
chore(deps): update dependency scratch-l10n to v3.14.20220602031631
2022-06-02 12:10:46 +00:00
Renovate Bot
1895c2a112
chore(deps): update dependency scratch-l10n to v3.14.20220602031631 2022-06-02 05:15:17 +00:00
renovate[bot]
b4673969af
Merge pull request #3675 from LLK/renovate/scratch-l10n-3.x
chore(deps): update dependency scratch-l10n to v3.14.20220601031612
2022-06-01 11:05:10 +00:00
Renovate Bot
c732a8763e
chore(deps): update dependency scratch-l10n to v3.14.20220601031612 2022-06-01 04:18:21 +00:00
renovate[bot]
1214db29c2
Merge pull request #3672 from LLK/renovate/scratch-l10n-3.x
chore(deps): update dependency scratch-l10n to v3.14.20220530031613
2022-05-30 11:13:44 +00:00
Renovate Bot
74c9ee1bc4
chore(deps): update dependency scratch-l10n to v3.14.20220530031613 2022-05-30 05:25:45 +00:00
renovate[bot]
047f65c3c3
Merge pull request #3670 from LLK/renovate/scratch-l10n-3.x
chore(deps): update dependency scratch-l10n to v3.14.20220528031543
2022-05-28 05:44:21 +00:00
Renovate Bot
ef96f67d42
chore(deps): update dependency scratch-l10n to v3.14.20220528031543 2022-05-28 03:38:23 +00:00
renovate[bot]
edef79dc6c
Merge pull request #3669 from LLK/renovate/scratch-l10n-3.x
chore(deps): update dependency scratch-l10n to v3.14.20220527031600
2022-05-27 11:09:42 +00:00
Renovate Bot
30037dcbb9
chore(deps): update dependency scratch-l10n to v3.14.20220527031600 2022-05-27 05:53:18 +00:00
renovate[bot]
44095be3af
Merge pull request #3648 from LLK/renovate/scratch-storage-2.x
chore(deps): update dependency scratch-storage to v2.0.2
2022-05-26 14:46:57 +00:00
Renovate Bot
35128f2c2a
chore(deps): update dependency scratch-storage to v2.0.2 2022-05-26 11:58:44 +00:00
renovate[bot]
00db81b05f
Merge pull request #3668 from LLK/renovate/scratch-l10n-3.x
chore(deps): update dependency scratch-l10n to v3.14.20220526031602
2022-05-26 11:56:34 +00:00
Renovate Bot
324c250f9a
chore(deps): update dependency scratch-l10n to v3.14.20220526031602 2022-05-26 05:12:38 +00:00
Karishma Chadha
044742d064
Merge pull request #3667 from kchadha/delete-broken-sound-status-on-update
Delete sound.broken when updating the sound buffer
2022-05-25 18:32:15 -04:00
Karishma Chadha
f7e5272618 Delete sound.broken when updating the sound buffer 2022-05-25 18:23:23 -04:00
renovate[bot]
66be2097c3
Merge pull request #3665 from LLK/renovate/scratch-l10n-3.x
chore(deps): update dependency scratch-l10n to v3.14.20220525031553
2022-05-25 11:28:59 +00:00
Renovate Bot
546264af78
chore(deps): update dependency scratch-l10n to v3.14.20220525031553 2022-05-25 05:16:27 +00:00
Karishma Chadha
9304e9e16d
Merge pull request #3660 from kchadha/gqm-serialize-broken
Handle errors from loading missing or broken bitmap costumes
2022-05-24 10:22:13 -04:00
renovate[bot]
50f6ccf9a5
Merge pull request #3664 from LLK/renovate/scratch-blocks-0.x
chore(deps): update dependency scratch-blocks to v0.1.0-prerelease.20220524062105
2022-05-24 13:48:39 +00:00
Renovate Bot
bd5a6052d0
chore(deps): update dependency scratch-blocks to v0.1.0-prerelease.20220524062105 2022-05-24 10:35:07 +00:00
renovate[bot]
cfb74cca31
Merge pull request #3662 from LLK/renovate/scratch-l10n-3.x
chore(deps): update dependency scratch-l10n to v3.14.20220524031600
2022-05-24 10:32:52 +00:00
Renovate Bot
daa5fbfa13
chore(deps): update dependency scratch-l10n to v3.14.20220524031600 2022-05-24 04:51:24 +00:00
Karishma Chadha
2ff83ce667 Add tests for missing and corrupt pngs in sb3 and sprite3 files 2022-05-23 19:54:45 -04:00
Karishma Chadha
3e193565ee Hook up error handling to bitmap loading flow and add tests for loading missing and corrupt bitmpas from sb2 and sprite2 files 2022-05-23 19:54:45 -04:00
Christopher Willis-Ford
0d3a72ec9b
Merge pull request #3661 from cwillisf/ci-node-lts
ci(node): update CI config to use Node LTS (was 8 & 10)
2022-05-23 16:48:41 -07:00
Christopher Willis-Ford
a13d3d6fe0 ci(node): update CI config to use Node LTS (was 8 & 10) 2022-05-23 16:28:23 -07:00
Karishma Chadha
768b19fd84
Merge pull request #3659 from kchadha/gqm-serialize-broken
Add tests for loading missing/broken vector costumes from scratch 2.0 files
2022-05-23 16:37:40 -04:00
renovate[bot]
aa4916cbf7
Merge pull request #3657 from LLK/renovate/scratch-l10n-3.x
chore(deps): update dependency scratch-l10n to v3.14.20220523031547
2022-05-23 18:25:06 +00:00
Renovate Bot
335c9d4ea7
chore(deps): update dependency scratch-l10n to v3.14.20220523031547 2022-05-23 15:25:26 +00:00
renovate[bot]
9db9f2f366
Merge pull request #3658 from LLK/renovate/scratch-blocks-0.x
chore(deps): update dependency scratch-blocks to v0.1.0-prerelease.20220523113733
2022-05-23 15:23:05 +00:00
Renovate Bot
a84477c73e
chore(deps): update dependency scratch-blocks to v0.1.0-prerelease.20220523113733 2022-05-23 13:07:55 +00:00
renovate[bot]
197a8b0c51
Merge pull request #3655 from LLK/renovate/scratch-l10n-3.x
chore(deps): update dependency scratch-l10n to v3.14.20220522031547
2022-05-22 16:26:45 +00:00
Renovate Bot
61d8263156
chore(deps): update dependency scratch-l10n to v3.14.20220522031547 2022-05-22 13:54:54 +00:00
renovate[bot]
818d178c25
Merge pull request #3656 from LLK/renovate/scratch-blocks-0.x
chore(deps): update dependency scratch-blocks to v0.1.0-prerelease.20220522064333
2022-05-22 13:52:30 +00:00
Renovate Bot
8d793c82ba
chore(deps): update dependency scratch-blocks to v0.1.0-prerelease.20220522064333 2022-05-22 11:42:30 +00:00