Update release desktop workflow to avoid link common package#561
Conversation
2d7328b to
81421c3
Compare
.circleci/config.yml
Outdated
There was a problem hiding this comment.
I intentionally put this in a separate job as it's not fast, and it blocks all the remaining jobs such as the app and UI building even though they don't need this. We can still use the conditions to skip the steps when running in a release though, and even create a command to avoid duplicating the conditions.
There was a problem hiding this comment.
My thinking was that as the e2e tests depend on both build App, build UI and build Extension, they indirectly pending on the install. The upside of splitting could be a very small performance improvement (in case the ui and app build would take longer than the extension build.. which is not the case btw).
Then the downside is If we split this job into two, we would make the workflow more complex. I believe we would need this:
- have a command to run the setup extension + recreated lavamoat policies
- have a job that runs and
echo scriptto just run something and then would run the previous command created if certain conditions are met. - update the
test_and_releaseworkflow and add the previous job as required for thebuild-extension-*jobs. (We need theecho scripton the previous job in order for the job to run something successful and be considered complete. Otherwise thebuild-extension-*jobs would never start)
There was a problem hiding this comment.
Is it worth sticking with environment variables for configuration, just for readability and consistency? At a glance we don't know what this means plus an env is a little more flexible as it can be defined at any level.
There was a problem hiding this comment.
Ah dam.. I left that on the package workflows, but I'll remove it (there's no need for that step on the package workflow as there's nothing to setup on the extension). Then the flags is just for dev, but yeah I can replace it with an env var. Makes more sense 👍
3c3769d to
51bf0b5
Compare
f050c33 to
5232e53
Compare
Update to a commit where the extension is already using @metamask/desktop@0.3.0 and has the updated lavamoat policies
5232e53 to
f39fac9
Compare
Overview
Added logic to CI to only link the common workspace to the submodule dependencies when not doing/testing a release.
Also took the opportunity to update the submodule commit to the latest one.
Changes
Root
Update the submodule commit. It now points to this one.
Pipeline
Update CircleCi to only link the common package to the Extension submodule when:
app-stableor starts withrelease/*(release branches)Update Github Actions package workflows to not link the common package to the Extension submodule.
Common
None.
App
Updated app dependencies to match Extension dependencies.