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

test: Run colima tests native instead of github, fixes #5598 #5886

Merged
merged 21 commits into from Feb 25, 2024

Conversation

rfay
Copy link
Member

@rfay rfay commented Feb 22, 2024

The Issue

We have never been able to get predictable results from colima tests on Github Actions. Maybe the VMs are too small
Also, we were never able to do normal https tests, so there are a bunch of things that require http, we might be able to remove those.

How This PR Solves The Issue

Run the builds on our larger buildkite test machines.

Detail

Testing by running TestExtraPortExpose with:
GOTEST_SHORT=true make testpkg TESTARGS="-run TestExtraPortExpose -count=1"

It seems to work after a colima start and then a colima restart. And then it stays working. So weird.

Copy link

github-actions bot commented Feb 22, 2024

@rfay
Copy link
Member Author

rfay commented Feb 23, 2024

Both colima tests (vz and qemu) ran in about an hour and a half (and succeeded). Yay!

@rfay rfay marked this pull request as ready for review February 23, 2024 01:34
@rfay rfay requested review from a team as code owners February 23, 2024 01:34
@rfay rfay requested a review from stasadev February 23, 2024 04:38
Copy link
Member

@stasadev stasadev left a comment

Choose a reason for hiding this comment

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

Looks great to me!

And I think we can add comments to all buildkite config yml files with clear info about where it can be run at the top of the file, without using the branches: stanza, to understand the expected behavior for each test:

For example:
add to .buildkite/macos-orbstack.yml

# See https://buildkite.com/ddev/macos-orbstack/settings/repository
# Runs on master, PRs, and 3rd party PRs

This is not ideal, of course, but it gives us a better understanding of the test, and when we return to it in six months or a year, we can already see how it should behave.

@rfay
Copy link
Member Author

rfay commented Feb 25, 2024

Added suggested comments to buildkite builds and made some adjustments so we don't see builds that don't happen.

I think we may not be using buildkite entirely right and may be able to improve how we're doing it.

@rfay
Copy link
Member Author

rfay commented Feb 25, 2024

Right now we're running 3 tests on every PR (colima, colima_vz, orbstack) that require tb-macos-arm64-(5-6-7), so they're fully occupied for one PR.

On master, we're running 4 (colima, colima_vz, orbstack, rancher)

I think we'll probably want to dial back one of the colima ones soon.

@rfay rfay merged commit d9d922f into master Feb 25, 2024
17 of 23 checks passed
@rfay rfay deleted the 20240222_colima_buildkite branch February 25, 2024 19:51
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.

None yet

2 participants