Faster CI and repo-map: findings from the TutorialVideos room #10
Loading…
Reference in a new issue
No description provided.
Delete branch "tutorialvideos-findings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The TutorialVideos room installed repo-map and the faster CI changes (TutorialVideos PR #26, merged) and sent back 5 findings. 4 are about the CI guide and 1 about
repo-map.sh. Its CI went from about 8 minutes for a PR to go green to 20 seconds, and the main deploy from 5m 04s to 1m 08s.Changes to
ci/faster-ci.mdpushon every branch andpull_requestruns every PR commit twice, and the 2 runs slow each other down on the one runner. This was about half of TutorialVideos' wait. The guide now says to keeppushfor main only.ubuntu-latestalready hasdocker. The guide said only that node:22-bookworm lacks it, so a room onubuntu-latestwould still download and check a docker binary it did not need. It now says which 4 lines to leave out.update-alternatives. Otherwise a room might build one image per version.Changes to
repo-map.shRoute::get('/videos')with no sign it sat insideRoute::prefix('admin')or['prefix' => 'api/v1'], so a session would look for the wrong URL. The scan is now a small awk script that tracks groups by brace depth and prints each route's prefix, for exampleroutes/api.php:7 [v1/admin] Route::post('/videos', ...). Braces inside strings, such as{user}route parameters, and after//are ignored, and a prefix on a single route applies to that route only. Lines with no prefix print as before.Checks
node --test: 4 tests pass. The new test fails on the old script.prefix()on the same line,prefix()in a chain over several lines, and['prefix' => ...]. It also checks that a}inside a string does not close a group.Recorded on omp-matrix-bot#27.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.