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

github comment_character_limit #56

Merged
merged 3 commits into from
Dec 5, 2016
Merged

github comment_character_limit #56

merged 3 commits into from
Dec 5, 2016

Conversation

davidx
Copy link
Contributor

@davidx davidx commented Dec 5, 2016

This is an initial fix to the issue #55
basho/riak_kv#1560
Gists still contain full output. (Given github gist size limitiations.)

@thumbot
Copy link
Collaborator

thumbot commented Dec 5, 2016

Thanks @davidx!

Settings
---
minimum_reviewers: 1
build_steps:
- bundle install
- bundle exec ruby test/test.rb
merge: true
org_mode: true
timeout: 1805
shell: "/bin/bash"
env:
  BUNDLE_GEMFILE: Gemfile

@thumbot
Copy link
Collaborator

thumbot commented Dec 5, 2016

fix_large_comments c002f3a ➡️ master 4d18afc ✅ completed
Looks good! 👍
✅ MERGE

Started at: 2016-12-05 10:06
Duration: 2 seconds.
Result: OK
Message: Merge Success: fix_large_comments c002f3a onto target branch: master 4d18afc
Exit Code: OK

📄




Updating 4d18afc..c002f3a
Fast-forward (no commit created; -m option ignored)
 lib/thumbs/pull_request_worker.rb | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)


✅ BUNDLE_INSTALL

Started at: 2016-12-05 10:06
Duration: 1 seconds.
Result: OK
Message: OK
Exit Code: 0

📄


cd /tmp/thumbs/master.4d18afc.fix_large_comments.c002f3a; bundle install

Using rake 11.3.0
Using concurrent-ruby 1.0.2
Using i18n 0.7.0
Using minitest 5.10.1
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 2.0.1
Using public_suffix 2.0.4
Using mime-types-data 3.2016.0521
Using safe_yaml 1.0.4
Using diff-lcs 1.2.5
Using unf_ext 0.0.7.2
Using dust 0.1.6
Using excon 0.54.0
Using multipart-post 2.0.0
Using git 1.3.0
Using graphql 1.1.0
Using hashdiff 0.3.1
Using hijack 0.2.1
Using http-form_data 1.0.1
Using http_parser.rb 0.6.0
Using kgio 2.10.0
Using log4r 1.1.10
Using method_source 0.8.2
Using mustermann 1.0.0.beta2
Using netrc 0.11.0
Using power_assert 0.4.1
Using thor 0.19.4
Using raindrops 0.17.0
Using rspec-support 3.5.0
Using tilt 2.0.5
Using vcr 3.0.3
Using bundler 1.13.6
Using tzinfo 1.2.2
Using nokogiri 1.6.8.1
Using rack-test 0.6.3
Using rack-protection 2.0.0.beta2
Using addressable 2.5.0
Using mime-types 3.1
Using crack 0.4.3
Using unf 0.1.4
Using faraday 0.10.0
Using test-unit 3.2.3
Using unicorn 5.2.0
Using rspec-core 3.5.4
Using rspec-expectations 3.5.0
Using rspec-mocks 3.5.0
Using activesupport 5.0.0.1
Using loofah 2.0.3
Using xpath 2.0.0
Using sinatra 2.0.0.beta2
Using webmock 2.1.0
Using domain_name 0.5.20161129
Using sawyer 0.8.1
Using rails-dom-testing 2.0.1
Using graphql-client 0.2.3
Using rails-html-sanitizer 1.0.3
Using capybara 2.10.2
Using http-cookie 1.0.3
Using octokit 4.6.2
Using actionview 5.0.0.1
Using http 2.1.0
Using actionpack 5.0.0.1
Using railties 5.0.0.1
Using rspec-rails 3.5.2
Bundle complete! 22 Gemfile dependencies, 67 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.



✅ BUNDLE_EXEC_RUBY_TEST/TEST.RB

Started at: 2016-12-05 10:06
Duration: 178 seconds.
Result: OK
Message: OK
Exit Code: 0

📄


cd /tmp/thumbs/master.4d18afc.fix_large_comments.c002f3a; bundle exec ruby test/test.rb

Loaded suite test/test
Started
.........................................................................

Finished in 166.841579619 seconds.
------
73 tests, 196 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
------
0.44 tests/s, 1.17 assertions/s



⬜ 0 of 1 Code reviews from organization basho-labs

<%= status[:output] %>
<% output=status[:output] %>
<% allowed_length=10000 %>
<%= output.slice!(output.length-allowed_length, output.length) %>
Copy link

Choose a reason for hiding this comment

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

ellipses = status[:output].length > allowed_length ? ' ...' : '' or something of the like should be computed then appended to the output so it is clear that the content was clipped. NOTE: the slice would also need to subtract out the ellipses length, so output.slice!(output.length - ellipses.length - allowed_length, output.length) .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeh, thats why added the thumbot wait lock (not implemented yet :) I'm tweaking it now to show "..snipped N lines.."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

regarding the slice, the intent is that it slices the preceding characters of the amount that is over the limit, so it always shows the tail.

@thumbot
Copy link
Collaborator

thumbot commented Dec 5, 2016

fix_large_comments be633c6 ➡️ master 4d18afc ✅ completed
Looks good! 👍
✅ MERGE

Started at: 2016-12-05 10:39
Duration: 1 seconds.
Result: OK
Message: Merge Success: fix_large_comments be633c6 onto target branch: master 4d18afc
Exit Code: OK

📄




Updating 4d18afc..be633c6
Fast-forward (no commit created; -m option ignored)
 lib/thumbs/pull_request_worker.rb | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)


✅ BUNDLE_INSTALL

Started at: 2016-12-05 10:39
Duration: 0 seconds.
Result: OK
Message: OK
Exit Code: 0

📄


cd /tmp/thumbs/master.4d18afc.fix_large_comments.be633c6; bundle install

Using rake 11.3.0
Using concurrent-ruby 1.0.2
Using i18n 0.7.0
Using minitest 5.10.1
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 2.0.1
Using public_suffix 2.0.4
Using mime-types-data 3.2016.0521
Using safe_yaml 1.0.4
Using diff-lcs 1.2.5
Using unf_ext 0.0.7.2
Using dust 0.1.6
Using excon 0.54.0
Using multipart-post 2.0.0
Using git 1.3.0
Using graphql 1.1.0
Using hashdiff 0.3.1
Using hijack 0.2.1
Using http-form_data 1.0.1
Using http_parser.rb 0.6.0
Using kgio 2.10.0
Using log4r 1.1.10
Using method_source 0.8.2
Using mustermann 1.0.0.beta2
Using netrc 0.11.0
Using power_assert 0.4.1
Using thor 0.19.4
Using raindrops 0.17.0
Using rspec-support 3.5.0
Using tilt 2.0.5
Using vcr 3.0.3
Using bundler 1.13.6
Using tzinfo 1.2.2
Using nokogiri 1.6.8.1
Using rack-test 0.6.3
Using rack-protection 2.0.0.beta2
Using addressable 2.5.0
Using mime-types 3.1
Using crack 0.4.3
Using unf 0.1.4
Using faraday 0.10.0
Using test-unit 3.2.3
Using unicorn 5.2.0
Using rspec-core 3.5.4
Using rspec-expectations 3.5.0
Using rspec-mocks 3.5.0
Using activesupport 5.0.0.1
Using loofah 2.0.3
Using xpath 2.0.0
Using sinatra 2.0.0.beta2
Using webmock 2.1.0
Using domain_name 0.5.20161129
Using sawyer 0.8.1
Using rails-dom-testing 2.0.1
Using graphql-client 0.2.3
Using rails-html-sanitizer 1.0.3
Using capybara 2.10.2
Using http-cookie 1.0.3
Using octokit 4.6.2
Using actionview 5.0.0.1
Using http 2.1.0
Using actionpack 5.0.0.1
Using railties 5.0.0.1
Using rspec-rails 3.5.2
Bundle complete! 22 Gemfile dependencies, 67 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.



✅ BUNDLE_EXEC_RUBY_TEST/TEST.RB

Started at: 2016-12-05 10:39
Duration: 227 seconds.
Result: OK
Message: OK
Exit Code: 0

📄


cd /tmp/thumbs/master.4d18afc.fix_large_comments.be633c6; bundle exec ruby test/test.rb

Loaded suite test/test
Started
.........................................................................

Finished in 218.931098496 seconds.
------
73 tests, 196 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
------
0.33 tests/s, 0.90 assertions/s



✅ 1 of 1 Code reviews from organization basho-labs

@paegun
Copy link

paegun commented Dec 5, 2016

+1

@thumbot
Copy link
Collaborator

thumbot commented Dec 5, 2016

Successfully merged basho-labs/thumbs/pulls/56 (be633c6 on to master)

---
:sha: 45acdda3827860af8ec22401e7d29b0f3e1519f9
:merged: true
:message: Pull Request successfully merged

@thumbot thumbot merged commit 45acdda into master Dec 5, 2016
@davidx davidx deleted the fix_large_comments branch December 5, 2016 22:04
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.

3 participants