-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update balena-multibuild to 5.1.0 #2358
Conversation
ad4c58e
to
e9dea5f
Compare
[tmigone] This pull request has attached support thread https://jel.ly.fish/a37762e5-aee9-4f13-9d37-a1763b50467d |
55bf393
to
c8ce2e0
Compare
a4f2362
to
640c3d0
Compare
640c3d0
to
adc876a
Compare
@robertgzr I happened to need the changes locally so I made them and to save you time I rebased this branch and added my commit on top. I'll leave it to you to integrate them as you see fit. |
@dfunckt I was just going to push the same change set 😅 |
btw do we have a policy for the |
do we use the package identifier or the repo name? |
Snap, sorry about that, just force-push to replace the branch.
I'm using the repo name following what I've seen in other places. It should not matter as long as you're consistently referring to the dependency using the |
adc876a
to
78ae297
Compare
9c05ae8
to
bdca06c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are failing as follows, I believe because npm run build
(which calls npm run lint
) was not run before git push
and therefore the code was not duly prettified:
describe('@balena/multibuild consistency', function () {
it('should use the same values for selected constants', async () => {
- const { QEMU_BIN_NAME: MQEMU_BIN_NAME } = await import('@balena/multibuild');
+ const { QEMU_BIN_NAME: MQEMU_BIN_NAME } = await import(
+ '@balena/multibuild'
+ );
const { QEMU_BIN_NAME } = await import('../../build/utils/qemu');
expect(QEMU_BIN_NAME).to.equal(MQEMU_BIN_NAME);
});
** Uncommitted changes found (^^^ diff above ^^^) - FAIL **
Error: "catch-uncommitted": npx failed with exit code 1:
"/usr/local/bin/npx" [catch-uncommitted,--catch-no-git,--skip-node-versionbot-changes,--ignore-space-at-eol]
bdca06c
to
9fc4f9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR actually adds new features to the CLI, right?
What can CLI users do after this PR, that they could not do before this PR?
The two commits have Change-type: patch
and, as it is, the CLI's Changelog file (where support agents and CLI users will be looking to find out what's new and whether they care to update the CLI) will read:
- Update balena-compose-parse to 3.0.0
Update balena-compose-parse from 2.1.3 to 3.0.0
- Rename to balena-compose-parse
- Annotate service validation errors with their service name [Akis Kesoglou]
- Add partial support for long form of depends_on [Akis Kesoglou]
- Only track latest version of each major compose version [Akis Kesoglou]
- Support compose version 2.4 [Robert Günzler]
- Support for env_file tags in composition [fisehara]
- Drop circle ci checks [Robert Günzler]
- Update balena-multibuild to 5.1.0
Update balena-multibuild from 4.12.2 to 5.1.0
- Delete leftover comments [Paulo Castro]
- Pass additional build options to docker [Robert Günzler]
- Rename to @balena/multibuild [Robert Günzler]
Could we reword the commits' headline messages to give users a better idea of what's new to them? Only the headline message (first line of commit body), not the rest of the commit body, which should stay as it is in order to provide the expanding arrows. Often we start the commit message (headline) with the names of the CLI commands that are affected by the change, which could also be helpful here.
For example, change:
From: Update balena-multibuild to 5.1.0
To: push/build/deploy: Support new docker-compose.yml parameters: extra_hosts, shm_size, target, cachefrom
Adding push
to the message above is tricky because, until the balenaCloud builder is updated, balena push myFleet
(push to cloud) is probably not affected. Is balena push ip-address
(local/live push) affected? I assume it is. Are we planning to update the builder soon enough that this PR could wait? cc: @toochevere
For balena-compose-parse
, change, for example:
From: Update balena-compose-parse to 3.0.0
To: push/build/deploy: Partially support long form of depends_on in docker-compose.yml
Am I right to assume that we should not claim "Support docker-compose.yml v2.4" (in the headline) because we don't fully support it? I.e. we don't support most (?) of the new 2.2, 2.3 and 2.4 features listed in the following page: https://docs.docker.com/compose/compose-file/compose-versioning/
Can we reword "Partially support long form of depends_on" to clarify what exactly is newly supported, "in 50 characters"? :-) cc: @dfunckt I am assuming this is the only (really?) relevant new feature of "Update balena-compose-parse to 3.0.0" from CLI users' point of view, other than what we are already claiming for the multibuild commit (extra_hosts, shm_size, target, cachefrom) and short of claiming support for docker-compose v2.4 which could be misleading (is it not?) as explained above.
And let's change the commits (both, I think) to have Change-type: minor
, as I understand that both deliver new features from end users' point of view (something they can do after updating the CLI, that they could not do before).
All above are just suggestions from my limited knowledge of how this PR affects each of balena build
, balena deploy
, balena push myFleet
and balena push ip-address
. The objective is to make the Changelog clearer to end users (and ourselves too).
This is also an exercise to figure out what to claim in some Monday's All Hands meet and Gdoc. :-)
By the way, does this require changes to the supervisor? Or is just balenaEngine that gets involved in enforcing |
Tested |
@dfunckt @vpetersson upps, should have double-checked 👀 In any case https://github.com/balena-io/docs/pull/2092/files#diff-6f555b8df872d999f8a8181b8ace6a5f528ea2a9c40700b3da23d5836f4458b5R31 reflects what is supported |
11fc0db
to
2017bea
Compare
b839c76
to
e2d6faf
Compare
e2d6faf
to
c6bc97c
Compare
Your landr site preview has been successfully deployed to https://landr-balena-io-repo-balena-cli-preview-2358.netlify.app Deployed with Landr 6.35.7 |
@pdcastro can you give this another look? |
I have tested this with the latest supervisor (to ensure livepush works [1]) [1] live push logs
and the builder release with this is ready (just not deployed yet) |
@robertgzr livepush does not work for me :( Can you try this branch? product-os/jellyfish#7413 |
@robertgzr, it looks like a couple of my previous comments have not been fully addressed yet:
Looking at your docs PR balena-io/docs/pull/2092 (good job!), how about the following, assuming that it is correct:
And also:
|
c6bc97c
to
3967968
Compare
Update balena-compose-parse from 2.1.3 to 3.0.0 Changelog-entry: push/build/deploy: Support 'condition: service_started' in 'depends_on' service configuration in docker-compose.yml Change-type: minor Signed-off-by: Robert Günzler <[email protected]>
42aa15f
to
775644c
Compare
Update balena-multibuild from 4.12.2 to 5.1.0 Changelog-entry: push/build/deploy: Support new docker-compose.yml build parameters: extra_hosts, shm_size, target, cache_from Change-type: minor Signed-off-by: Robert Günzler <[email protected]>
775644c
to
ecd048c
Compare
@pdcastro rebased and updated both of the commits. the builder change is live in prod now too :) |
Neat. 👍 The following comment from @karaxuna, is it something caused by this PR that is still pending resolution?
|
That question was discussed in a Flowdock thread (restricted access). In that thread, @karaxuna explained that that issue is no longer an issue:
But in the process of investigating it, it sounds like @robertgzr found another issue:
This sounds relevant to this PR because one of the commits in the PR states:
So we'd be claiming that It sounds like this needs to be clarified before this PR is merged. Discussion continuing in the FD thread (or here). |
@robertgzr @pdcastro any way we can push this forward? Is the blocker
? |
@dfunckt the problem is our custom livepush directives and maybe the fundamental assumptions made by livepush. At least the former don't consider that a build might terminate at an intermediate build stage, which is possible with |
Superseded by #2476 |
Depends-on: balena-io-modules/balena-multibuild#93
Change-type: patch
Signed-off-by: Robert Günzler [email protected]