Skip to content

More consistently pass --package-db flag to tests - #9954

Merged
mergify[bot] merged 1 commit into
haskell:masterfrom
mpickering:wip/package-db-more
May 3, 2024
Merged

mergify[bot] merged 1 commit into
haskell:masterfrom
mpickering:wip/package-db-more

Conversation

@mpickering

Copy link
Copy Markdown
Collaborator

Previously --package-db was only passed to test which used the v2- prefix.

Now we pass --package-db to things which use the v2- prefix, not things which use the v1- prefix and by default assume that unprefixed commands are v2 commands.

Please read Github PR Conventions and then fill in one of these two templates.

  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

@mpickering
mpickering force-pushed the wip/package-db-more branch from b53fa62 to 04af5ce Compare April 29, 2024 15:47

@alt-romes alt-romes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've been bitten by this previously a couple of times... it's really not great for the testsuite behaviour of
cabal "build" [] to differ from cabal "v2-build" [], and leads to quite incomprehensible failures 🚨

@Mikolaj

Mikolaj commented May 1, 2024

Copy link
Copy Markdown
Member

Is this ready for merge? If so, @mpickering could you mark it so by setting one of the merge labels? Thank you.

@Mikolaj

Mikolaj commented May 1, 2024

Copy link
Copy Markdown
Member

@mergify rebase

@mergify

mergify Bot commented May 1, 2024

Copy link
Copy Markdown
Contributor

rebase

✅ Branch has been successfully rebased

@Mikolaj
Mikolaj force-pushed the wip/package-db-more branch from 04af5ce to 0bc3708 Compare May 1, 2024 10:05
@mpickering mpickering added the merge me Tell Mergify Bot to merge label May 1, 2024
@mergify mergify Bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label May 3, 2024
Previously `--package-db` was only passed to test which used the `v2-`
prefix.

Now we pass `--package-db` to things which use the `v2-` prefix, not
things which use the `v1-` prefix and by default assume that unprefixed
commands are v2 commands.
@Mikolaj
Mikolaj force-pushed the wip/package-db-more branch from 0bc3708 to 2b44677 Compare May 3, 2024 10:10
@mergify
mergify Bot merged commit 570960c into haskell:master May 3, 2024
@ulysses4ever ulysses4ever mentioned this pull request Jun 3, 2024
1 of 2 tasks
@ulysses4ever

Copy link
Copy Markdown
Collaborator

@mergify backport 3.12

@mergify

mergify Bot commented Jun 3, 2024 •

Copy link
Copy Markdown
Contributor

backport 3.12

✅ Backports have been created

Details

mergify Bot added a commit that referenced this pull request Jun 3, 2024
…10067)

* More consistently pass --package-db flag to tests

Previously `--package-db` was only passed to test which used the `v2-`
prefix.

Now we pass `--package-db` to things which use the `v2-` prefix, not
things which use the `v1-` prefix and by default assume that unprefixed
commands are v2 commands.

(cherry picked from commit 2b44677)

# Conflicts:
#	cabal-testsuite/PackageTests/CustomTestCoverage/cabal.out

* fixup! resolve conflicts

---------

Co-authored-by: Matthew Pickering <[email protected]>
Co-authored-by: Artem Pelenitsyn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge me Tell Mergify Bot to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants