Restore test coverage and constraints fix dropped by stale rebase#1101
Closed
cpuguy83 wants to merge 1 commit into
Closed
Restore test coverage and constraints fix dropped by stale rebase#1101cpuguy83 wants to merge 1 commit into
cpuguy83 wants to merge 1 commit into
Conversation
PR project-dalec#898 was rebased from a branch that had already dropped landed work relative to its own fork point; the squash-merge faithfully applied that stale state and silently reverted the changes below while still landing PR project-dalec#898's legitimate work. This restores what was lost without disturbing those legitimate changes. test/linux_target_test.go: - Restore the testLinuxSpec spec-defaults refactor and the testDepsOnly and testLinuxSpec helpers, recovering the subtests in testLinuxDistro that were reverted (t.Run coverage goes back from 54 to ~90). - Preserve main's later work that must not regress: the in-graph LLB testLinuxPackageTestsFail rewrite, the SubPath/Value fixtures, the azlinux4/mariner2 target maps, and the stack.Formatter error annotations. targets/linux/rpm/distro/pkg.go: - Restore the project-dalec#925 fix in InstallTestDeps: install test dependencies with DnfInstallWithConstraints and append the ProgressGroup before building the install closure so the repo mounts inherit it. Trade-off: the pkg.go change is behavioral and main currently passes CI without it, but it was part of the work originally landed in project-dalec#925 and dropped by the same bad rebase, so it is restored here alongside the tests rather than left silently reverted. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Goff <cpuguy83@gmail.com>
c27cb0b to
dc38939
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Restores test coverage and a constraints fix that were silently dropped when #898 ("Move spec tests into the LLB graph") merged. That PR was developed on a very old branch, so the rebase/merge reverted newer
mainwork the branch body never carried — with no replacement.test/linux_target_test.gotestLinuxSpecandtestDepsOnlyplus ~31 subtests that were onmainbut absent from the merged result: gomod replace/go-work/vendor/subpath handling, container-image checks, distro upgrade/dpkg behaviors, source/patch ordering, package-test suites, cache-key assertions, and multiline-env coverage.mariner2target entry the rebase reintroduced.stack.Formatter,%+v) and theazlinux4target entry.targets/linux/rpm/distro/pkg.goDnfInstallWithConstraints(opts)toInstallTestDepsand hoists the "Install test dependencies" progress group above the returned closure, restoring the constraints propagation added in Add missing constraints propagation and verify propagation in tests #925. Without this, constraints (including progress-group metadata) aren't propagated to the dnf operations that install test dependencies.