Skip to content

Add further tests of cyclical project imports - #9665

Merged
mergify[bot] merged 2 commits into
haskell:masterfrom
cabalism:test/project-cyclical-import
Jan 29, 2024
Merged

mergify[bot] merged 2 commits into
haskell:masterfrom
cabalism:test/project-cyclical-import

Conversation

@philderbeast

@philderbeast philderbeast commented Jan 27, 2024 •

Copy link
Copy Markdown
Collaborator

While reviewing #9578, I saw that the cyclical test didn't assertOutputContains and had but one cyclical test, a simple loopback of a project importing itself. It now has the following test projects;

+-- cyclical-0-self.project (imports cyclical-0-self.project)
+-- cyclical-0-self.project (already processed)
+-- etc
+-- cyclical-1-out-back.project
 +-- cyclical-1-out-back.config (imports cyclical-1-out-back.project)
+-- cyclical-1-out-back.project (already processed)
 +-- etc
+-- cyclical-1-out-self.project
 +-- cyclical-1-out-self.config (imports cyclical-1-out-self.config)
 +-- cyclical-1-out-self.config (already processed)
 +-- etc
+-- cyclical-2-out-out-backback.project
 +-- cyclical-2-out-out-backback-a.config
  +-- cyclical-2-out-out-backback-b.config (imports cyclical-2-out-out-backback.project)
+-- cyclical-2-out-out-backback.project (already processed)
 +-- etc
+-- cyclical-2-out-out-back.project
+-- cyclical-2-out-out-back-a.config
 +-- cyclical-2-out-out-back-b.config (imports cyclical-2-out-out-back-a.config)
+-- cyclical-2-out-out-back-a.config (already processed)
 +-- etc
+-- cyclical-2-out-out-self.project
 +-- cyclical-2-out-out-self-a.config
  +-- cyclical-2-out-out-self-b.config (imports cyclical-2-out-out-self-b.config)
  +-- cyclical-2-out-out-self-b.config (already processed)
  +-- etc

@philderbeast

Copy link
Copy Markdown
Collaborator Author

Thanks @geekosaur, I've added newlines where they were missing in all files.

@philderbeast

philderbeast commented Jan 28, 2024 •

Copy link
Copy Markdown
Collaborator Author

@Mikolaj if this gets approval, could we waive the 2 day delay please? It expands tests, tests that would help with #9578.

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

Agreed, let's expedite this PR.

@Mikolaj

Mikolaj commented Jan 29, 2024

Copy link
Copy Markdown
Member

@philderbeast: please kindly rebase/squash/redo commits as you see fit and please set the labels, including the delay_passed label.

- Assert on exact cyclical import failure message
- Add logging and assertOutputContains to cyclical tests
- Use a different naming convention for cyclical import tests
- Use "self" in naming
- Show import tree
@philderbeast
philderbeast force-pushed the test/project-cyclical-import branch from 3dbe09b to 3f92ac6 Compare January 29, 2024 13:23
@philderbeast

Copy link
Copy Markdown
Collaborator Author

Thanks @Mikolaj. I've squashed down to two commits, one that adds assertOutputContains to make the existing test more robust and another for adding the additional tests.

@philderbeast philderbeast added merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge+no rebase and removed attention: needs-review labels Jan 29, 2024
@mergify
mergify Bot merged commit e268c0a into haskell:master Jan 29, 2024
@philderbeast

Copy link
Copy Markdown
Collaborator Author

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

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+no rebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants