Closed microbit-carlos closed 2 months ago
One thing to keep in mind comparing random commits is that if an old commit from this repo (lancaster-university/microbit-dal
) requires an old commit from lancaster-university/microbit
or microbit-samples
, then the build will fail, as the build script currently clones the latest microbit-samples
, which will fetch whatever version of microbit
it has configured in its module.json
.
So, for example, in my fork I've manually triggered a run to compare with v2.1.0 vs v2.2.0-rc5, which fails because v2.1.0 requires an older version of the other repos: https://github.com/microbit-carlos/microbit-dal/actions/runs/4363621337
But comparing v2.2.0-rc0 vs v2.2.0-rc6 works as they both compile with the latest microbit-samples
and microbit
repos:
https://github.com/microbit-carlos/microbit-dal/actions/runs/4363680069
We could add more fields to the form to configure the commits for the microbit
and microbit-samples
repo, but I think that adds more complexity than it's needed at the moment.
Equivalent to these Bloaty PRs added to CODAL:
When this is merged each commit in this repo will build the microbit-samples BLE project with this commit and a parent commit (or branch base commit for PRs) and show the build size difference and also it'll show the size of largest components.
To view this info you need to go to the GitHub Action Job summary (the CI run page) for the commit, where all the info has been exported. For example, from my fork (as this doesn't run here yet): https://github.com/microbit-carlos/microbit-dal/actions/runs/4363680069
For PRs a comment showing the size diff for the PR is also added automatically.
You can also trigger the workflow manually to see the diff size between arbitrary commits in this URL (once merged): https://github.com/lancaster-university/microbit-dal/actions/workflows/size-diff.yml