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

Add cycle support #3456

Merged
merged 5 commits into from
Aug 23, 2024
Merged

Add cycle support #3456

merged 5 commits into from
Aug 23, 2024

Conversation

MDrakos
Copy link
Member

@MDrakos MDrakos commented Aug 20, 2024

StoryDX-3002 Support cycles in the build plan

@github-actions github-actions bot changed the base branch from master to version/0-46-0-RC1 August 20, 2024 21:59
@MDrakos
Copy link
Member Author

MDrakos commented Aug 21, 2024

Looking at the test runs it appears to be known or intermittent failures. I've tested this locally with regular checkouts and PR deploy checkouts of Go projects.

@MDrakos MDrakos requested a review from Naatan August 21, 2024 20:17
Copy link
Member

@Naatan Naatan left a comment

Choose a reason for hiding this comment

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

I think we should also have a test covering the Dependencies() methods on both the Artifact and Ingredient type in the buildplan. I suspect these either need to also be cycle aware, or we'll need the test to prevent them regressing as it feels like a likely point for cycle bugs to happen.

@@ -192,3 +192,75 @@ var buildWithRuntimeDepsViaSrc = &Build{
},
},
}

var buildWithRuntimeDepsViaSrcCycle = &Build{
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add a comment highlighting the cycle.

@MDrakos MDrakos requested a review from Naatan August 22, 2024 21:53
Copy link
Member

@Naatan Naatan left a comment

Choose a reason for hiding this comment

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

Great work! Know those tests are painful to write but we're gonna be happy we have them when we have to go back to this code.

@MDrakos MDrakos merged commit bd82284 into version/0-46-0-RC1 Aug 23, 2024
4 of 7 checks passed
@MDrakos MDrakos deleted the DX-3002 branch August 23, 2024 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants