From 52497d62b107cea34a9a91224cdc1d850354e684 Mon Sep 17 00:00:00 2001 From: Jurre Stender Date: Thu, 23 Dec 2021 11:59:56 +0100 Subject: [PATCH] Python: Move some more tests to the slow suite After noticing the regular python suite still takes ~20 minutes on CI and the python_slow suite roughly half that, I moved another bunch of the now top 10 slowest tests in the regular suite to the slow one. --- .../python/file_updater/pipfile_file_updater_spec.rb | 4 ++-- .../python/update_checker/pipenv_version_resolver_spec.rb | 2 +- .../python/update_checker/poetry_version_resolver_spec.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/spec/dependabot/python/file_updater/pipfile_file_updater_spec.rb b/python/spec/dependabot/python/file_updater/pipfile_file_updater_spec.rb index 5125f789cb6..1d52b028292 100644 --- a/python/spec/dependabot/python/file_updater/pipfile_file_updater_spec.rb +++ b/python/spec/dependabot/python/file_updater/pipfile_file_updater_spec.rb @@ -319,7 +319,7 @@ end end - context "with a path dependency" do + context "with a path dependency", :slow do let(:dependency_files) { [pipfile, lockfile, setupfile] } let(:setupfile) do Dependabot::DependencyFile.new( @@ -419,7 +419,7 @@ ) end - it "updates the lockfile and the requirements.txt" do + it "updates the lockfile and the requirements.txt", :slow do expect(updated_files.map(&:name)). to match_array(%w(Pipfile.lock requirements.txt)) diff --git a/python/spec/dependabot/python/update_checker/pipenv_version_resolver_spec.rb b/python/spec/dependabot/python/update_checker/pipenv_version_resolver_spec.rb index 9c9bbd3325f..ad06c6b3c09 100644 --- a/python/spec/dependabot/python/update_checker/pipenv_version_resolver_spec.rb +++ b/python/spec/dependabot/python/update_checker/pipenv_version_resolver_spec.rb @@ -145,7 +145,7 @@ end end - context "with a path dependency" do + context "with a path dependency", :slow do let(:dependency_files) { [pipfile, lockfile, setupfile] } let(:setupfile) do Dependabot::DependencyFile.new( diff --git a/python/spec/dependabot/python/update_checker/poetry_version_resolver_spec.rb b/python/spec/dependabot/python/update_checker/poetry_version_resolver_spec.rb index 2dd2130e107..34a76353c38 100644 --- a/python/spec/dependabot/python/update_checker/poetry_version_resolver_spec.rb +++ b/python/spec/dependabot/python/update_checker/poetry_version_resolver_spec.rb @@ -143,7 +143,7 @@ end end - context "with a dependency file that includes a git dependency" do + context "with a dependency file that includes a git dependency", :slow do let(:pyproject_fixture_name) { "git_dependency.toml" } let(:lockfile_fixture_name) { "git_dependency.lock" } let(:dependency_name) { "pytest" }