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

chore: improve demo dependency bumping and use dockertest for integration tests #1580

Merged
merged 15 commits into from
Feb 13, 2025

Conversation

endigma
Copy link
Contributor

@endigma endigma commented Feb 11, 2025

Motivation and Context

Fixes #1553

  • Updates bump-deps.sh to use the head of main not the current branch, which usually gets deleted on merge.
  • As a consequence of a lot of annoying dependency interactions, also changes router-tests to use dockertest instead of testcontainers for booting up the Kafka server it uses for events/* tests.

Checklist

@endigma endigma requested a review from alepane21 February 11, 2025 10:33
Copy link

github-actions bot commented Feb 11, 2025

Dependency Review

The following issues were found:

  • ❌ 1 vulnerable package(s)

View full job summary

Copy link

github-actions bot commented Feb 11, 2025

Router image scan passed

✅ No security vulnerabilities found in image:

ghcr.io/wundergraph/cosmo/router:sha-4f00d9a5120f19b0c7efe31e5455843f7a4aa647

@endigma endigma force-pushed the jesse/1553-gomod-fix branch 3 times, most recently from 0769b96 to 5c8e500 Compare February 11, 2025 16:55
@endigma endigma marked this pull request as draft February 11, 2025 16:57
@endigma endigma marked this pull request as ready for review February 11, 2025 17:57
@endigma endigma requested review from StarpTech and Aenimus February 11, 2025 17:57
@endigma endigma changed the title chore: update demo dependencies to main HEAD instead of local HEAD chore: update demo dependencies to main HEAD instead of local HEAD and use dockertest instead of testcontainers for integration tests Feb 12, 2025
@endigma endigma changed the title chore: update demo dependencies to main HEAD instead of local HEAD and use dockertest instead of testcontainers for integration tests chore: improve demo dependency bumping and use dockertest instead of testcontainers for integration tests Feb 12, 2025
@endigma endigma force-pushed the jesse/1553-gomod-fix branch from 664ede4 to 61353e0 Compare February 12, 2025 11:24
@endigma endigma changed the title chore: improve demo dependency bumping and use dockertest instead of testcontainers for integration tests chore: improve demo dependency bumping and use dockertest for integration tests Feb 12, 2025
Copy link
Contributor

@StarpTech StarpTech left a comment

Choose a reason for hiding this comment

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

LGTM

@endigma endigma force-pushed the jesse/1553-gomod-fix branch 3 times, most recently from 4e31d50 to c218ba6 Compare February 12, 2025 20:59
@endigma endigma requested a review from StarpTech February 12, 2025 21:00
router-tests/testenv/pubsub.go Show resolved Hide resolved
router-tests/testenv/pubsub.go Show resolved Hide resolved
router-tests/testenv/pubsub.go Show resolved Hide resolved
router-tests/testenv/pubsub.go Show resolved Hide resolved
router-tests/testenv/pubsub.go Show resolved Hide resolved
Copy link
Contributor

@StarpTech StarpTech left a comment

Choose a reason for hiding this comment

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

LGTM

previously it attempted to share one kafka container across all parallel tests using a mutex and a global, but this poses major issues with shutdown, forcing a timed expiry, which is unreliable or slow depending on the constant expiry time
spinning up a kafka per test is theoretically safer and better for test isolation, but it slows down GHA so much that it makes timing dependent tests fail
@endigma endigma force-pushed the jesse/1553-gomod-fix branch from c218ba6 to 2ae7534 Compare February 13, 2025 10:51
@endigma endigma merged commit 18a18b4 into main Feb 13, 2025
13 checks passed
@endigma endigma deleted the jesse/1553-gomod-fix branch February 13, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants