Skip to content

Add tests for project imports and constraint version conflicts - #9680

Merged
mergify[bot] merged 3 commits into
haskell:masterfrom
cabalism:test/project-hop-imports
Feb 1, 2024
Merged

mergify[bot] merged 3 commits into
haskell:masterfrom
cabalism:test/project-hop-imports

Conversation

@philderbeast

Copy link
Copy Markdown
Collaborator

While reviewing #9578, I saw opportunity for more project import tests in addition to those added in #9665. This also adds tests of constraint version priority capturing the current behaviour.

I've left comments in cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs where the current behaviour is not good.

@geekosaur geekosaur 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.

You have a number of files without final newlines again.

@philderbeast

Copy link
Copy Markdown
Collaborator Author

Thanks @geekosaur, fixed now.

@Mikolaj Mikolaj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Excellent. Particular thanks for the documentation of the tests.

- Allow for bad behaviour of master branch
- Add cyclical checks with same file names and hops
- Add cyclical import tests with 1 and 2 hops in cycle
- Expected output has project with full project path
- Add newlines at EOF
@philderbeast
philderbeast force-pushed the test/project-hop-imports branch from 86d66cb to 78fcdc6 Compare February 1, 2024 11:56
@philderbeast

Copy link
Copy Markdown
Collaborator Author

Thanks for the approval @Mikolaj. I've squashed the commit that added final newlines with its predecessor. Like #9665, are you happy to waive the 2-day wait?

@philderbeast

Copy link
Copy Markdown
Collaborator Author

Label merge+no rebase is necessary when the pull request is from an organisation.

@Mikolaj

Mikolaj commented Feb 1, 2024

Copy link
Copy Markdown
Member

Thanks for the approval @Mikolaj. I've squashed the commit that added final newlines with its predecessor. Like #9665, are you happy to waive the 2-day wait?

Yes, I think it makes sense in this case.

@Mikolaj Mikolaj added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Feb 1, 2024
@mergify
mergify Bot merged commit 663e98f into haskell:master Feb 1, 2024
@philderbeast philderbeast mentioned this pull request Feb 1, 2024
4 of 5 tasks
@Mikolaj

Mikolaj commented Feb 1, 2024

Copy link
Copy Markdown
Member

Ooops, I forgot to rebase, didn't I?

@philderbeast

Copy link
Copy Markdown
Collaborator Author

I rebased today didn't I?

@Mikolaj

Mikolaj commented Feb 2, 2024

Copy link
Copy Markdown
Member

Apparently somebody merged between then and our merge, but the git history complication is marginal this time.

@mergify mergify Bot mentioned this pull request Apr 9, 2024
4 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cabal: tests/package-tests merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge+no rebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants