From 5608b12141cee6abb0be1a1921696828297d005b Mon Sep 17 00:00:00 2001 From: Amarin Phaosawasdi Date: Fri, 8 Oct 2021 16:21:40 -0700 Subject: [PATCH] test(profiler): use debian 11 images for integration tests (#4965) The default image used for go agent integration tests is debian 9. Update them to use a newer image which includes, among other things, newer CA certificates needed to download the dependent packages successfully. --- profiler/integration_test.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/profiler/integration_test.go b/profiler/integration_test.go index 6db37a56514b..cca1ed590388 100644 --- a/profiler/integration_test.go +++ b/profiler/integration_test.go @@ -273,9 +273,11 @@ func TestAgentIntegration(t *testing.T) { testcases := []goGCETestCase{ { InstanceConfig: proftest.InstanceConfig{ - ProjectID: projectID, - Name: fmt.Sprintf("profiler-test-gomaster-%s", runID), - MachineType: "n1-standard-1", + ProjectID: projectID, + Name: fmt.Sprintf("profiler-test-gomaster-%s", runID), + MachineType: "n1-standard-1", + ImageProject: "debian-cloud", + ImageFamily: "debian-11", }, name: "profiler-test-gomaster", wantProfileTypes: []string{"CPU", "HEAP", "THREADS", "CONTENTION", "HEAP_ALLOC"}, @@ -286,9 +288,11 @@ func TestAgentIntegration(t *testing.T) { }, { InstanceConfig: proftest.InstanceConfig{ - ProjectID: projectID, - Name: fmt.Sprintf("profiler-test-go%s-%s", goVersionName, runID), - MachineType: "n1-standard-1", + ProjectID: projectID, + Name: fmt.Sprintf("profiler-test-go%s-%s", goVersionName, runID), + MachineType: "n1-standard-1", + ImageProject: "debian-cloud", + ImageFamily: "debian-11", }, name: fmt.Sprintf("profiler-test-go%s", goVersionName), wantProfileTypes: []string{"CPU", "HEAP", "THREADS", "CONTENTION", "HEAP_ALLOC"}, @@ -310,6 +314,9 @@ func TestAgentIntegration(t *testing.T) { // memory than is available on an n1-standard-1. Use a // machine type with more memory for backoff test. MachineType: "n1-highmem-2", + + ImageProject: "debian-cloud", + ImageFamily: "debian-11", }, name: fmt.Sprintf("profiler-backoff-test-go%s", goVersionName), goVersion: goVersion,