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

Add line breaks #36

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add line breaks #36

wants to merge 3 commits into from

Conversation

ghiculescu
Copy link

Currently when we run this task in our CI, our output looks like this:

/home/circleci/bundler-cache/****/2.7.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:68: warning: already initialized constant Net::ProtocRetryError
/usr/local/lib/****/2.7.0/net/protocol.rb:66: warning: previous definition of ProtocRetryError was here
/home/circleci/bundler-cache/****/2.7.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:214: warning: already initialized constant Net::BufferedIO::BUFSIZE
/usr/local/lib/****/2.7.0/net/protocol.rb:206: warning: previous definition of BUFSIZE was here
/home/circleci/bundler-cache/****/2.7.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:541: warning: already initialized constant Net::NetPrivate::Socket
/usr/local/lib/****/2.7.0/net/protocol.rb:503: warning: previous definition of Socket was here
WARNING: Skipping foo.bar_id: it has multiple associations referencing different keys/tables.
WARNING: Skipping foo.bar_id: it has multiple associations referencing different keys/tables.
WARNING: Skipping foo.bar_id: it has multiple associations referencing different keys/tables.
WARNING: Skipping foo.bar_id: it has multiple associations referencing different keys/tables.
WARNING: Skipping foo.bar_id: it has multiple associations referencing different keys/tables.
Missing foreign key relationship on 'new_table.new_column_id' to 'other_table.id'
Found missing foreign keys, run `rails generate immigration MigrationName` to create a migration to add them.

There is a lot of noise (that's not this gem's fault) and then the useful message right at the bottom. A lot of that noise is repeated across many CI tasks and it's on us to fix it. But anyway...

I've seen two cases recently where someone has glossed over the really useful message at the bottom because of all the noise above it. So I'm proposing to add some line breaks to make the actionable bit stand out.

Currently when we run this task in our CI, our output looks like this:

```
/home/circleci/bundler-cache/****/2.7.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:68: warning: already initialized constant Net::ProtocRetryError
/usr/local/lib/****/2.7.0/net/protocol.rb:66: warning: previous definition of ProtocRetryError was here
/home/circleci/bundler-cache/****/2.7.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:214: warning: already initialized constant Net::BufferedIO::BUFSIZE
/usr/local/lib/****/2.7.0/net/protocol.rb:206: warning: previous definition of BUFSIZE was here
/home/circleci/bundler-cache/****/2.7.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:541: warning: already initialized constant Net::NetPrivate::Socket
/usr/local/lib/****/2.7.0/net/protocol.rb:503: warning: previous definition of Socket was here
WARNING: Skipping foo.bar_id: it has multiple associations referencing different keys/tables.
WARNING: Skipping foo.bar_id: it has multiple associations referencing different keys/tables.
WARNING: Skipping foo.bar_id: it has multiple associations referencing different keys/tables.
WARNING: Skipping foo.bar_id: it has multiple associations referencing different keys/tables.
WARNING: Skipping foo.bar_id: it has multiple associations referencing different keys/tables.
Missing foreign key relationship on 'new_table.new_column_id' to 'other_table.id'
Found missing foreign keys, run `rails generate immigration MigrationName` to create a migration to add them.
```

There is a lot of noise (that's not this gem's fault) and then the useful message right at the bottom. A lot of that noise is repeated across many CI tasks and it's on us to fix it. But anyway...

I've seen two cases recently where someone has glossed over the really useful message at the bottom because of all the noise above it. So I'm proposing to add some line breaks to make the actionable bit stand out.
joshuay03 added a commit to TandaHQ/immigrant that referenced this pull request May 8, 2024
Ref: jenseng#36

Co-authored-by: Alex Ghiculescu <[email protected]>
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.

1 participant