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

fix(module-conversion): skip omitted build deps #5727

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

thsig
Copy link
Collaborator

@thsig thsig commented Feb 13, 2024

What this PR does / why we need it:

When a module has a build dependency on another module that doesn't have a corresponding Build after being converted into actions (e.g. a build dependency on a terraform module), we now log a warning and remove the dependency from the generated actions instead of erroring out.

In 0.12, some users had build dependencies on modules with no-op build steps (e.g. terraform, kubernetes and helm modules)

While this was harmless in 0.12, this resulted in noisy errors before this fix.

When a module has a build dependency on another module that doesn't have
a corresponding Build after being converted into actions (e.g. a build
dependency on a `terraform` module), we now log a warning and remove the
dependency from the generated actions instead of erroring out.

In 0.12, some users had build dependencies on modules with no-op build
steps (e.g. `terraform`, `kubernetes` and `helm` modules)

While this was harmless in 0.12, this resulted in noisy errors before
this fix.
@vvagaytsev
Copy link
Collaborator

LGTM, thank you! I've left a comment, that's not critical. I'll approve the PR.

@thsig thsig added this pull request to the merge queue Feb 14, 2024
Merged via the queue into main with commit c734d0f Feb 14, 2024
43 checks passed
@thsig thsig deleted the warn-on-removed-module-build-deps branch February 14, 2024 09:36
github-merge-queue bot pushed a commit that referenced this pull request Feb 14, 2024
)

**What this PR does / why we need it**:
Use `partition` to separate existing and missing deps, and then process
each collection separately, just for better readability and ensuring
SRP.

A leftover from the core review for #5727 :)

**Which issue(s) this PR fixes**:

Fixes #

**Special notes for your reviewer**:
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.

None yet

2 participants