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

Save docker images for C/C++ #12831

Merged
merged 5 commits into from
Dec 17, 2024
Merged

Save docker images for C/C++ #12831

merged 5 commits into from
Dec 17, 2024

Conversation

jonathanmetzman
Copy link
Contributor

@jonathanmetzman jonathanmetzman commented Dec 11, 2024

So that bugs can reproduced.

These should not be used if security is a concern!
I maybe will put the word unsafe in the name

@jonathanmetzman
Copy link
Contributor Author

/gcbrun skip

steps.append(docker_build_arm_step)

if (not experiment and not config.testing and
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to add push as an explicit step? Is it simpler to just add this to https://cloud.google.com/build/docs/build-config-file-schema#images ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I recall max removing this step because it failed. I think this way is more performant (it runs in the background) and error-tolerant, but I'd understand if you want the simplicity instead.
I do think all of this builder code may be getting too complicated, too many special cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I recall max removing this step because it failed. I think this way is more performant (it runs in the background) and error-tolerant, but I'd understand if you want the simplicity instead.
I do think all of this builder code may be getting too complicated, too many special cases.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, simplifcity is my main motivation -- this is getting way too complicated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. I think the failure is problematic though because it can lead to issues filed against users.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's been a while so hopefully this is handled better by Cloud Build now. But yeah, good point. If we run into this again your solution is probably the more practical one.

Copy link
Contributor Author

@jonathanmetzman jonathanmetzman Dec 17, 2024

Choose a reason for hiding this comment

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

I'm low on cycles so let's land this for now and fix it later. I'll file an issue so I don't forget to fix this (though i have a feeling build isn't dealing with this better).

@jonathanmetzman jonathanmetzman merged commit 02c5dc9 into master Dec 17, 2024
8 of 19 checks passed
@coughytable coughytable mentioned this pull request Dec 18, 2024
1 task
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.

3 participants