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.
diff --git a/profiler/integration_test.go b/profiler/integration_test.go
index 6db37a5..cca1ed5 100644
--- a/profiler/integration_test.go
+++ b/profiler/integration_test.go
@@ -273,9 +273,11 @@
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 @@
},
{
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 @@
// 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,