Skip to content

Map projectType correctly in getShouldExecuteCompressionTaskProvider#2134

Merged
priettt merged 1 commit intomainfrom
priettt/improveExecutionTaskProvider
Apr 28, 2025
Merged

Map projectType correctly in getShouldExecuteCompressionTaskProvider#2134
priettt merged 1 commit intomainfrom
priettt/improveExecutionTaskProvider

Conversation

@priettt
Copy link
Contributor

@priettt priettt commented Apr 28, 2025

Goal

We were using project.provider { projectType.orNull == ... }, which could cause early resolution of projectType, ignoring its dependencies. Using map wires it correctly.

I think onlyIf might only be resolved in execution time, so we wouldn't be facing any issues here, but just in case, this is a more correct way of doing things.

Also, use map for failBuildOnUploadErrors instead of resolving it early.

@priettt priettt requested a review from a team as a code owner April 28, 2025 15:43
@priettt priettt force-pushed the priettt/fixCustomSymbolsDirDependencies branch from d3792d3 to 81eab56 Compare April 28, 2025 17:41
@priettt priettt force-pushed the priettt/improveExecutionTaskProvider branch from 66160c8 to 852ef0e Compare April 28, 2025 19:04
Base automatically changed from priettt/fixCustomSymbolsDirDependencies to main April 28, 2025 19:05
@priettt priettt force-pushed the priettt/improveExecutionTaskProvider branch from 852ef0e to 71bd653 Compare April 28, 2025 19:05
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@priettt priettt merged commit ef772ce into main Apr 28, 2025
11 checks passed
@priettt priettt deleted the priettt/improveExecutionTaskProvider branch April 28, 2025 20:22
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.

2 participants