From: Ward Vandewege Date: Thu, 14 Apr 2022 13:50:03 +0000 (-0400) Subject: 18995: Merge branch 'main' into 18995-code-cleanup-1 X-Git-Tag: 2.5.0~204^2~4 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/437d0dc1dfeea7b81999caa1c540da0903df87f7?hp=b88c34d26e23ecd991ec9dfed758b7629c1ebeec 18995: Merge branch 'main' into 18995-code-cleanup-1 Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- diff --git a/apps/workbench/test/integration/pipeline_instances_test.rb b/apps/workbench/test/integration/pipeline_instances_test.rb index b6e86d8ae5..732e360999 100644 --- a/apps/workbench/test/integration/pipeline_instances_test.rb +++ b/apps/workbench/test/integration/pipeline_instances_test.rb @@ -37,30 +37,6 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest DateTime.parse(utc).to_time end - if false - # No need to test (or mention) these all the time. If they start - # working (without need_selenium) then some real tests might not - # need_selenium any more. - - test 'phantomjs DST' do - skip '^^' - t0s = '3/8/2015, 01:59 AM' - t1s = '3/8/2015, 03:01 AM' - t0 = parse_browser_timestamp t0s - t1 = parse_browser_timestamp t1s - assert_equal 120, t1-t0, "'#{t0s}' to '#{t1s}' was reported as #{t1-t0} seconds, should be 120" - end - - test 'phantomjs DST 2' do - skip '^^' - t0s = '2015-03-08T10:43:00Z' - t1s = '2015-03-09T03:43:00Z' - t0 = parse_browser_timestamp page.evaluate_script("new Date('#{t0s}').toLocaleString()") - t1 = parse_browser_timestamp page.evaluate_script("new Date('#{t1s}').toLocaleString()") - assert_equal 17*3600, t1-t0, "'#{t0s}' to '#{t1s}' was reported as #{t1-t0} seconds, should be #{17*3600} (17 hours)" - end - end - test 'view pipeline with job and see graph' do visit page_with_token('active_trustedclient', '/pipeline_instances') assert page.has_text? 'pipeline_with_job' diff --git a/lib/boot/supervisor.go b/lib/boot/supervisor.go index 7daceccb93..762581e54e 100644 --- a/lib/boot/supervisor.go +++ b/lib/boot/supervisor.go @@ -809,7 +809,6 @@ func (super *Supervisor) autofillConfig(cfg *arvados.Config) error { } func addrIsLocal(addr string) (bool, error) { - return true, nil listener, err := net.Listen("tcp", addr) if err == nil { listener.Close() diff --git a/lib/config/deprecated.go b/lib/config/deprecated.go index e9c5da1064..d53e7ae340 100644 --- a/lib/config/deprecated.go +++ b/lib/config/deprecated.go @@ -125,7 +125,6 @@ func (ldr *Loader) applyDeprecatedVolumeDriverParameters(cfg *arvados.Config) er if params.AccessKey != "" || params.SecretKey != "" { if params.AccessKeyID != "" || params.SecretAccessKey != "" { return fmt.Errorf("cannot use old keys (AccessKey/SecretKey) and new keys (AccessKeyID/SecretAccessKey) at the same time in %s.Volumes.%s.DriverParameters -- you must remove the old config keys", clusterID, volID) - continue } var allparams map[string]interface{} err = json.Unmarshal(vol.DriverParameters, &allparams) diff --git a/lib/config/load_test.go b/lib/config/load_test.go index 5270dcccce..2d87b906c9 100644 --- a/lib/config/load_test.go +++ b/lib/config/load_test.go @@ -338,11 +338,7 @@ func (s *LoadSuite) TestUnacceptableTokens(c *check.C) { } { c.Logf("trying bogus config: %s", trial.example) _, err := testLoader(c, "Clusters:\n zzzzz:\n "+trial.example, nil).Load() - if trial.short { - c.Check(err, check.ErrorMatches, `Clusters.zzzzz.`+trial.configPath+`: unacceptable characters in token.*`) - } else { - c.Check(err, check.ErrorMatches, `Clusters.zzzzz.`+trial.configPath+`: unacceptable characters in token.*`) - } + c.Check(err, check.ErrorMatches, `Clusters.zzzzz.`+trial.configPath+`: unacceptable characters in token.*`) } } diff --git a/services/api/app/controllers/arvados/v1/groups_controller.rb b/services/api/app/controllers/arvados/v1/groups_controller.rb index c1dc7a4961..8539332f16 100644 --- a/services/api/app/controllers/arvados/v1/groups_controller.rb +++ b/services/api/app/controllers/arvados/v1/groups_controller.rb @@ -104,7 +104,6 @@ class Arvados::V1::GroupsController < ApplicationController def destroy if !TRASHABLE_CLASSES.include?(@object.group_class) return @object.destroy - show else super # Calls destroy from TrashableController module end