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

Make dirty runs dirtier #683

Merged
merged 4 commits into from
Oct 20, 2023
Merged

Make dirty runs dirtier #683

merged 4 commits into from
Oct 20, 2023

Conversation

kegsay
Copy link
Member

@kegsay kegsay commented Oct 18, 2023

Previously, Deploy(t, 1) would deploy 1 HS in 1 isolated blueprint which could be reused by other tests who also call Deploy(t, 1). This pattern extended to Deploy(t, 2), which would deploy 2x HSes in 1 isolated blueprint. This however means we'd run more containers in parallel. What's worse: these containers would only be cleaned up at the end of the entire test package run: defer deployment.Destroy(t) would do nothing.

This was Very Bad on GHA boxes as they have limited resources, causing synapse/workers to fail to complete.

The cost of this aggressive reuse of dirty containers is slightly more ugliness internally in Complement, as we now entirely have separate code paths for handling dirty stuff. This can be refactored later down the line to demarcate the difference between this and blueprints.

Previously, `Deploy(t, 1)` would deploy 1 HS in 1 isolated blueprint
which could be reused by other tests who also call `Deploy(t, 1)`. This
pattern extended to `Deploy(t, 2)`, which would deploy 2x HSes in 1
isolated blueprint. This however means we'd run more containers in parallel.
What's worse: these containers would only be cleaned up at the end of
the entire test package run: `defer deployment.Destroy(t)` would do nothing.

This was Very Bad on GHA boxes as they have limited resources, causing
synapse/workers to fail to complete.
@kegsay kegsay requested review from a team as code owners October 18, 2023 16:32
@kegsay kegsay merged commit fe4a38f into main Oct 20, 2023
4 checks passed
@kegsay kegsay deleted the kegan/more-dirty branch October 20, 2023 09:07
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.

2 participants