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

Shut down agent after each test #1922

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Shut down agent after each test #1922

merged 1 commit into from
Jul 24, 2024

Conversation

odisseus
Copy link
Contributor

@odisseus odisseus commented Jul 18, 2024

Since the CodyIntegrationTextFixture starts a fresh agent for every test case, we need to shut down those agents during cleanup. Otherwise the leftover agent processes clog the RAM (each Node process takes 50-250 MB), and the JVM threads which listen to them keep running forever.

Test plan

Manually run the stability check in CI
1000 repetitions (5000 individual test cases): 2 hours 40 minutes, 118 failures

@odisseus odisseus changed the title Increase the timeout to 30 seconds Shut down agent after each test; increase the async timeout to 30 seconds Jul 18, 2024
@odisseus odisseus marked this pull request as ready for review July 18, 2024 18:22
@odisseus odisseus self-assigned this Jul 18, 2024
Copy link
Contributor

@mkondratek mkondratek left a comment

Choose a reason for hiding this comment

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

lgtm

@odisseus odisseus marked this pull request as draft July 22, 2024 08:28
@odisseus odisseus changed the title Shut down agent after each test; increase the async timeout to 30 seconds Shut down agent after each test Jul 23, 2024
@odisseus odisseus closed this Jul 23, 2024
@odisseus odisseus reopened this Jul 24, 2024
@odisseus odisseus requested a review from pkukielka July 24, 2024 08:05
@odisseus odisseus marked this pull request as ready for review July 24, 2024 08:05
@odisseus odisseus enabled auto-merge (squash) July 24, 2024 08:06
@odisseus odisseus merged commit 5659de4 into main Jul 24, 2024
9 of 10 checks passed
@odisseus odisseus deleted the odisseus-patch-1 branch July 24, 2024 08:08
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