Skip to content
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

V4 #52

Merged
merged 5 commits into from
Jul 19, 2024
Merged

V4 #52

merged 5 commits into from
Jul 19, 2024

Conversation

thgreasi
Copy link
Contributor

@thgreasi thgreasi commented Jul 12, 2024

Change-type: major

@thgreasi thgreasi marked this pull request as ready for review July 15, 2024 16:12
@thgreasi thgreasi marked this pull request as draft July 15, 2024 16:20
package.json Outdated Show resolved Hide resolved
@otaviojacobi
Copy link
Contributor

We might also want a check from supervisor devs in this? https://github.com/balena-os/balena-supervisor/blob/master/package.json#L42

@otaviojacobi otaviojacobi requested review from pipex and cywang117 July 17, 2024 10:36
@pipex
Copy link
Contributor

pipex commented Jul 17, 2024

The supervisor only uses balena-compose for setting up its development image @otaviojacobi. This change seems to be related to the typing improvements on Pine, I don't think that will affect the supervisor but I'll check it out. Thanks for bringing it to my attention!

@otaviojacobi
Copy link
Contributor

otaviojacobi commented Jul 17, 2024

hey @pipex I think the typing pr is a follow up to this, but the more "breaking" thing here that could in impact is in fact this commit: 40da06d it just effectively expects the engine to break with v1 manifests (no changes on balena-compose itself, but we should be aware that this will happen on more recent docker releases)

Also important is probably this: 8ce4ee1 we are using native fetch api to talk to the registry instead of request library which could potentially change something as fetch http client is far lighter/less feature full (but so far we haven't seen any change)

@otaviojacobi otaviojacobi marked this pull request as ready for review July 18, 2024 11:28
@otaviojacobi otaviojacobi requested review from dfunckt and Page- July 18, 2024 11:44
Copy link
Collaborator

@dfunckt dfunckt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It all looks good to me.

retry?: RetryParameters;
}

export function createClient(config: ClientConfig): PinejsClientRequest {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that this is gone, there is a comment at line 58/28 that needs to be updated.

thgreasi and others added 5 commits July 18, 2024 09:02
Change-type: major
tar files created with mac computers are including a lsetxattr header that
docker engine doesn't seem to be able to handle, this just recreate the tar files
without such headers

See: moby/moby#47517
See: https://eclecticlight.co/2023/03/13/ventura-has-changed-app-quarantine-with-a-new-xattr/
Change-type: patch
Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release.

Change-type: major
@thgreasi
Copy link
Contributor Author

@otaviojacobi are we fine w/ this? Are we just pending an approval from someone?

@otaviojacobi
Copy link
Contributor

otaviojacobi commented Jul 18, 2024

@thgreasi I have tested pushing to a local device, pushing to cloud, builiding & deploying to cloud too.
More over, I have isolated and test the bit where you replaced request for fetch and it seems this bit is just some very specific thing for resolving node docker image versions from old resin balena images. I manually tested and all was the exact same result as with request lib so I don't think there are any blockers (besides that, balena-cli tests also passed locally)

So IMHO, yes, we are just missing a review/approval, please notice that I also ammended one of your commits to address Akis's comment.

@pipex
Copy link
Contributor

pipex commented Jul 18, 2024

Thanks for the info @otaviojacobi. This should not cause any issues on the supervisor the supervisor as this module is not used in production, it is only used to build supervisor images for testing the supervisor on a live device (npm run sync)

@thgreasi
Copy link
Contributor Author

Cool @otaviojacobi I had tested exactly those things as well 👍 (The node resolver change ended up being the hardest thing to test)

@flowzone-app flowzone-app bot merged commit 6dfd9e1 into master Jul 19, 2024
50 checks passed
@flowzone-app flowzone-app bot deleted the v4 branch July 19, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants