Skip to content

Preserve file order of messages during successive daemon runs - #13780

Merged
JukkaL merged 2 commits into
masterfrom
daemon-message-order
Sep 30, 2022
Merged

Preserve file order of messages during successive daemon runs#13780
JukkaL merged 2 commits into
masterfrom
daemon-message-order

Conversation

@JukkaL

@JukkaL JukkaL commented Sep 30, 2022

Copy link
Copy Markdown
Collaborator

This fixes an annoyance where the messages got reshuffled between daemon runs.

Also if there are messages from files that didn't generate messages during the previous run, move them towards the end to make them more visible.

The implementation is a bit messy since we only have a list of formatted lines where it's most natural to sort the messages, but individual messages can be split across multiple lines.

Fix #13141.

This fixes an annoyance where the messages got reshuffled between
daemon runs.

Also if there are messages from files that didn't generate messages
during the previous run, move them towards the end to make them
more visible.

Fix #13141.
@github-actions

This comment has been minimized.

msg2,
msg1,
msg3,
]

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.

Add a test where there are more files in the new errors (unless I missed it)?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added a test case and fixed an issue related to this.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JukkaL
JukkaL merged commit efdda88 into master Sep 30, 2022
@JukkaL
JukkaL deleted the daemon-message-order branch September 30, 2022 14:26
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.

Use consistent order for messages from mypy daemon

2 participants