Title: Something in RubySpec triggers ENV to clear · Issue #2440 · jruby/jruby · GitHub
Open Graph Title: Something in RubySpec triggers ENV to clear · Issue #2440 · jruby/jruby
X Title: Something in RubySpec triggers ENV to clear · Issue #2440 · jruby/jruby
Description: I thought this was just a TravisCI glitch, but then it happened to me. It appears that something in RubySpec is causing ENV to get cleared, or at least ENV['HOME']. It is intermittent. The resulting failures look like this: An exception ...
Open Graph Description: I thought this was just a TravisCI glitch, but then it happened to me. It appears that something in RubySpec is causing ENV to get cleared, or at least ENV['HOME']. It is intermittent. The resultin...
X Description: I thought this was just a TravisCI glitch, but then it happened to me. It appears that something in RubySpec is causing ENV to get cleared, or at least ENV['HOME']. It is intermittent. The ...
Opengraph URL: https://github.com/jruby/jruby/issues/2440
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Something in RubySpec triggers ENV to clear","articleBody":"I thought this was just a TravisCI glitch, but then it happened to me.\n\nIt appears that something in RubySpec is causing ENV to get cleared, or at least ENV['HOME']. It is intermittent. The resulting failures look like this:\n\n```\nAn exception occurred during: before :each\nFile.expand_path does not modify a HOME string argument ERROR\nNoMethodError: undefined method `chomp' for nil:NilClass\n/Users/headius/projects/jruby/spec/ruby/core/file/expand_path_spec.rb:92:in `(root)'\norg/jruby/RubyBasicObject.java:1641:in `instance_eval'\norg/jruby/RubyEnumerable.java:1422:in `all?'\norg/jruby/RubyFixnum.java:300:in `times'\norg/jruby/RubyArray.java:1567:in `each'\n/Users/headius/projects/jruby/spec/ruby/core/file/expand_path_spec.rb:5:in `(root)'\norg/jruby/RubyKernel.java:969:in `load'\norg/jruby/RubyBasicObject.java:1641:in `instance_eval'\norg/jruby/RubyArray.java:1567:in `each'\n```\n\nThe `chomp` call here fails because ENV['HOME'] comes back nil. This always affects the same FILE specs and from what I've seen it's largely the same set of errors. It happens only once in a blue moon.\n\nI have no explanation. Specs for env that might modify values _appear_ to all have ensure logic to restore them.\n\nI got this on master locally on OS X Yosemite, and was not able to reproduce it after the one time it failed.\n","author":{"url":"https://github.com/headius","@type":"Person","name":"headius"},"datePublished":"2015-01-08T00:24:33Z","url":"https://github.com/jruby/jruby/issues/2440"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ed0bc051-a20e-98e1-3bfc-61dcebc91b18 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC62:3C44C0:5C0C6A:7A63A4:6B038AD8 |
| html-safe-nonce | fbf7eee84319150605f18076b126fcf19fe2bad388a88149f6b1249f50383e0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzYyOjNDNDRDMDo1QzBDNkE6N0E2M0E0OjZCMDM4QUQ4IiwidmlzaXRvcl9pZCI6IjI2MTgxMjUxMzk1OTM4OTA1MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a854e878d802edf537aad4323f2586a3b958ef48de7b94d034cb08a793853828 |
| hovercard-subject-tag | issue:53700360 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/jruby/jruby/2440/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f9c3d87b5ff6cd5557d04b9c1fe509b5de2634422f1f4351ae61952295a5a4ed/jruby/jruby/issues/2440 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f9c3d87b5ff6cd5557d04b9c1fe509b5de2634422f1f4351ae61952295a5a4ed/jruby/jruby/issues/2440 |
| og:image:alt | I thought this was just a TravisCI glitch, but then it happened to me. It appears that something in RubySpec is causing ENV to get cleared, or at least ENV['HOME']. It is intermittent. The resultin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | headius |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/jruby/jruby git https://github.com/jruby/jruby.git |
| octolytics-dimension-user_id | 55687 |
| octolytics-dimension-user_login | jruby |
| octolytics-dimension-repository_id | 168370 |
| octolytics-dimension-repository_nwo | jruby/jruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 168370 |
| octolytics-dimension-repository_network_root_nwo | jruby/jruby |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width