Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert_nil to make Drone logs slightly more user-friendly #44150

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

Erin007
Copy link
Contributor

@Erin007 Erin007 commented Jan 3, 2022

Drone logs can be tricky to parse. One strategy is to search fail to try to find the error in a failing run. Doing so shows a handful of deprecation warnings, for example:

DEPRECATED: Use assert_nil if expecting nil from test/controllers/scripts_controller_test.rb:996. This will fail in Minitest 6.

To reduce noise and thereby make it slightly easier to find the real failures, I've updated offending tests to use assert_nil and updated a few of the skip messages we left for ourselves.

@Erin007 Erin007 requested a review from mikeharv January 3, 2022 15:50
Copy link
Contributor

@mikeharv mikeharv left a comment

Choose a reason for hiding this comment

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

This seems like a good change; I'm glad to see work being done to make drone logs easier to read!

@Erin007 Erin007 merged commit da9ba9f into staging Jan 4, 2022
@Erin007 Erin007 deleted the assert-nil branch January 4, 2022 18:44
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.

None yet

2 participants