Commit dc15301
authored
Switch from Heroku CI to GHA (heroku#1604)
* Remove unused env var
* Parallel split test
* Isolate environment modifying test
These tests mutate ENV which was fine when they ran sequentially, but when they're run with parallel split tests we get failures on CI (but not locally)
```
1) Rails Runner failure in one task does not cause another to fail
Failure/Error: expect(!!local_storage.success?).to eq(true)
expected: true
got: false
(compared using ==)
Diff:
@@ -1 +1 @@
-true
+false
# ./vendor/bundle/ruby/3.3.0/gems/rspec-support-3.13.3/lib/rspec/support.rb:110:in `block in <module:Support>'
# ./vendor/bundle/ruby/3.3.0/gems/rspec-support-3.13.3/lib/rspec/support.rb:119:in `notify_failure'
# ./vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.4/lib/rspec/expectations/fail_with.rb:35:in `fail_with'
# ./vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.4/lib/rspec/expectations/handler.rb:37:in `handle_failure'
# ./vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.4/lib/rspec/expectations/handler.rb:55:in `block in handle_matcher'
# ./vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.4/lib/rspec/expectations/handler.rb:26:in `with_matcher'
# ./vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.4/lib/rspec/expectations/handler.rb:47:in `handle_matcher'
# ./vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.4/lib/rspec/expectations/expectation_target.rb:65:in `to'
# ./vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.4/lib/rspec/expectations/expectation_target.rb:101:in `to'
# ./spec/helpers/rails_runner_spec.rb:87:in `block (3 levels) in <top (required)>'
# ./spec/helpers/rails_runner_spec.rb:10:in `block (2 levels) in wrap_test'
# ./spec/helpers/rails_runner_spec.rb:9:in `chdir'
# ./spec/helpers/rails_runner_spec.rb:9:in `block in wrap_test'
# ./vendor/ruby-3.3.8/lib/ruby/3.3.0/tmpdir.rb:99:in `mktmpdir'
# ./spec/helpers/rails_runner_spec.rb:8:in `wrap_test'
```
In theory the disk is already isolated, so I'm assuming the problem is with environment variable modification.
* Try tests in GHA
* Fix tests not running on GHA
* Use Rails LTS creds
* Remove unused file1 parent 9cf1b8c commit dc15301
7 files changed
Lines changed: 40 additions & 61 deletions
File tree
- .github/workflows
- spec
- helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 53 | | |
60 | 54 | | |
61 | 55 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | | - | |
14 | | - | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | 136 | | |
140 | 137 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | | - | |
28 | 25 | | |
29 | 26 | | |
30 | 27 | | |
| |||
0 commit comments