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

Break circular dependency between provider/tests #3385

Merged
merged 2 commits into from
Dec 20, 2024
Merged

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Dec 19, 2024

The ./tests modules currently depends on the ./provider module for some OpenAPI helpers, but ./provider also depends on ./tests for Gomega matchers.

Since ./tests isn't versioned like a proper module this puts us in a situation where Renovate will continuously try to update it #3384

We can teach Renovate to ignore this bump, or we can break the dependency by moving some code around. I've opted for the latter, moving tests/gomega to provider/pkg/gomega. (This makes it easier to consume from other projects if we want to.)

Of course it's worth mentioning this is a self-inflicted problem due to our module structure. Related pulumi/ci-mgmt#1238.

@blampe blampe requested a review from rquitales December 19, 2024 22:11
@blampe blampe added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Dec 19, 2024
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.08%. Comparing base (82406b3) to head (a7e5af4).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3385      +/-   ##
==========================================
- Coverage   41.14%   41.08%   -0.07%     
==========================================
  Files          85       87       +2     
  Lines       12764    12900     +136     
==========================================
+ Hits         5252     5300      +48     
- Misses       7122     7205      +83     
- Partials      390      395       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@blampe blampe enabled auto-merge (squash) December 20, 2024 18:38
@blampe blampe merged commit f5355f6 into master Dec 20, 2024
19 checks passed
@blampe blampe deleted the blampe/test-module branch December 20, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants