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(installer): Fix the same pkgbase being built multiple times on error #2561

Draft
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

Ferdi265
Copy link
Contributor

@Ferdi265 Ferdi265 commented Jan 5, 2025

The previous fix commit ec837c8 failed to address the case where the build fails, as packages are only added to builtPkgDests on a successful build. This commit addresses this by adding the package to the map earlier.

Fixes #2560.

The patch seems trivial and initial testing shows it works and I've not run into any issues with this patch yet, but I'll daily drive this for the next week anyway to see if anything comes up.

@Ferdi265 Ferdi265 requested a review from Jguer as a code owner January 5, 2025 17:33
@Ferdi265
Copy link
Contributor Author

Ferdi265 commented Jan 5, 2025

Classic, forgot to run the tests. Something's off here, I'll look into it.

@Ferdi265 Ferdi265 marked this pull request as draft January 5, 2025 17:40
…error

The previous fix commit ec837c8 failed to address the case where the
build fails, as packages are only added to builtPkgDests on a successful
build. This commit addresses this by adding the package to the map earlier.

Fixes Jguer#2560.
@Ferdi265 Ferdi265 force-pushed the fix-pkgbase-multiple-failures branch from 7c152e3 to 2659e01 Compare January 5, 2025 17:47
@Ferdi265
Copy link
Contributor Author

Ferdi265 commented Jan 5, 2025

This should fix part of the test failures, I accidently used the wrong pkgdests when filling builtPkgDests. This still doesn't fix everything though, still looking for the final fix.

Yeah, it seems I don't know exactly how this should interact with the TestInstaller_CompileFailed "two layers" test. IIUC it fails to build bob, but then doesn't attempt to build yay any more since a package with the same pkgbase has already been attempted to be built and failed.

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.

yay tries to build each split package, ignoring previous failures in the same pkgbase
1 participant