Skip to content

Add Container.sync field to force evaluation - #5071

Merged
gerhard merged 3 commits into
dagger:mainfrom
helderco:helder/dag-278-force-synchronous-execution-disable
May 18, 2023
Merged

gerhard merged 3 commits into
dagger:mainfrom
helderco:helder/dag-278-force-synchronous-execution-disable

Conversation

@helderco

@helderco helderco commented May 2, 2023 •

Copy link
Copy Markdown
Contributor

Initial implementation for #5065

Just Container for now, can add more types later.

@helderco
helderco force-pushed the helder/dag-278-force-synchronous-execution-disable branch 2 times, most recently from 6d25cd3 to 079df9c Compare May 4, 2023 20:42

@aluzzardi aluzzardi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

API LGTM

/cc @vito for the Evaluate call (it that enough to trigger actual evaluation?)

@helderco

helderco commented May 10, 2023 •

Copy link
Copy Markdown
Contributor Author

/cc @vito for the Evaluate call (it that enough to trigger actual evaluation?)

Yes, it works. Have been using it locally to explore some other use cases 😛

I had to pause here to update a bunch of other issues, but I'll return to it very soon.

Last I was working on it, I was doing an Evaluate on Directory but felt the need to learn more about BuildKit. I may ask @vito for a few pointers when I get back to it.

I'm also still wondering which types to do this besides Container, Directory and File. Is there something from BuildKit/LLB that makes sense as a rule here?

@helderco
helderco force-pushed the helder/dag-278-force-synchronous-execution-disable branch from 079df9c to ef60cd6 Compare May 17, 2023 21:52
@helderco
helderco marked this pull request as ready for review May 17, 2023 22:05
@helderco helderco changed the title Add Container.sync field to force evaluation (POC) Add Container.sync field to force evaluation May 17, 2023
@helderco

Copy link
Copy Markdown
Contributor Author

It's mergeable now, I can add the rest in follow-ups.

@helderco
helderco force-pushed the helder/dag-278-force-synchronous-execution-disable branch from ef60cd6 to 4e5327f Compare May 18, 2023 11:04
Go is tested in core.

Signed-off-by: Helder Correia <[email protected]>

@gerhard gerhard left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This one has been a long time coming. First #4205, then #4668 & eventually #5065.

Being able to merge the first step towards addressing a series of complications is mighty satisfying.

Thank you @helderco for sticking with this and seeing it through, bit by bit.

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