Skip to content

merge input states#92

Merged
coffee-cup merged 14 commits intomainfrom
jr/merge-input-states
Mar 11, 2025
Merged

merge input states#92
coffee-cup merged 14 commits intomainfrom
jr/merge-input-states

Conversation

@coffee-cup
Copy link
Contributor

@coffee-cup coffee-cup commented Mar 10, 2025

Instead of copying the input states onto the first state, this PR changes that behaviour to use a llb.Merge operation. This is more efficient, especially when the merge op is the final node in the build graph (which it always will be for the deploy inputs).

Because of how merging works, we are copying each input into a separate scratch layer. Because of this, we need to avoid copying the . local state multiple times. This is where all the snapshot file changes comes from.

Ref: https://github.com/moby/buildkit/blob/1a1ee09d1c3e2eabf0f37b980ac79acce0c17703/docs/dev/merge-diff.md

@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 21:17 Destroyed
@railway-app
Copy link

railway-app bot commented Mar 10, 2025

🚅 Deployed to the railpack-pr-92 environment in railpack

Service Status Web Updated (UTC)
railpack docs ◻️ Removed (View Logs) Web Mar 11, 2025 at 12:27 am

@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 21:18 Destroyed
@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 21:20 Destroyed
@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 21:21 Destroyed
@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 21:24 Destroyed
@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 21:49 Destroyed
@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 23:05 Destroyed
@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 23:07 Destroyed
@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 23:07 Destroyed
@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 23:27 Destroyed
@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 23:33 Destroyed
@railway-app railway-app bot temporarily deployed to railpack-pr-92 March 10, 2025 23:36 Destroyed
@coffee-cup coffee-cup merged commit 82cdd5d into main Mar 11, 2025
25 checks passed
@coffee-cup coffee-cup deleted the jr/merge-input-states branch March 11, 2025 00:26
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.

1 participant