-
Notifications
You must be signed in to change notification settings - Fork 34
Fix CI infrastructure: update Ruby matrix, fix Python pip failure #382
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ autolint: autopep8 lint | |
| run_tests: clean | ||
| tox -e ${TOX_ENV} -- --durations=10 -vv tests | ||
|
|
||
| test: autopep8 run_tests | ||
| test: run_tests | ||
|
||
|
|
||
| install: | ||
| pip install --ignore-installed six -e .[test] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,8 +90,14 @@ def shutdown(self): | |
| def acknowledge(self, test): | ||
| return self._eval_script( | ||
| 'acknowledge', | ||
| keys=[self.key('running'), self.key('processed'), self.key('owners')], | ||
| args=[test], | ||
| keys=[ | ||
| self.key('running'), | ||
| self.key('processed'), | ||
| self.key('owners'), | ||
| self.key('error-reports'), | ||
| self.key('requeued-by'), | ||
| ], | ||
| args=[test, test, '', 0], | ||
| ) == 1 | ||
|
|
||
| def requeue(self, test, offset=42): | ||
|
|
@@ -107,8 +113,10 @@ def requeue(self, test, offset=42): | |
| self.key('running'), | ||
| self.key('worker', self.worker_id, 'queue'), | ||
| self.key('owners'), | ||
| self.key('error-reports'), | ||
| self.key('requeued-by'), | ||
| ], | ||
| args=[self.max_requeues, self.global_max_requeues, test, offset], | ||
| args=[self.max_requeues, self.global_max_requeues, test, test, offset, 0], | ||
| ) == 1 | ||
|
|
||
| def retry_queue(self): | ||
|
|
@@ -173,9 +181,12 @@ def _try_to_reserve_test(self): | |
| self.key('processed'), | ||
| self.key('worker', self.worker_id, 'queue'), | ||
| self.key('owners'), | ||
| self.key('requeued-by'), | ||
| self.key('workers'), | ||
| ], | ||
|
Comment on lines
183
to
186
|
||
| args=[ | ||
| time.time(), | ||
| 42, | ||
| ], | ||
| ) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 3.3.0 | ||
| 4.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec| | |
| spec.homepage = 'https://github.com/Shopify/ci-queue' | ||
| spec.license = 'MIT' | ||
|
|
||
| spec.required_ruby_version = '>= 2.7' | ||
| spec.required_ruby_version = '>= 3.1' | ||
|
|
||
| spec.files = lua_scripts + `git ls-files -z`.split("\x0").reject do |f| | ||
| f.match(%r{^(test|spec|features)/}) | ||
|
|
@@ -43,5 +43,7 @@ Gem::Specification.new do |spec| | |
|
|
||
| spec.add_development_dependency 'snappy' | ||
| spec.add_development_dependency 'msgpack' | ||
| spec.add_development_dependency 'benchmark' | ||
| spec.add_development_dependency 'rexml' | ||
|
Comment on lines
+46
to
+47
|
||
| spec.add_development_dependency 'rubocop' | ||
| end | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sudo pip install autopep8 || truemasks installation failures and can hide real environment problems. Sincemake testno longer runs autopep8, consider removing this step entirely; otherwise, prefer installing with the intended interpreter (python -m pip ...) and letting the step fail if the dependency is required.