Skip to content

Not clear as to why addon test failed - can we improve anything here?Β #1048

@ocofaigh

Description

@ocofaigh

Seen in this run -> https://github.com/terraform-ibm-modules/terraform-ibm-event-notifications/actions/runs/18278119335/job/52035133335

[TestAddonDefaultConfiguration] API request failed - URL: https://cm.globalcatalog.cloud.ibm.com/api/v1-beta/deploy/projects/02cc75d7-392d-46e3-bd7b-45782c7177ab/container
[TestAddonDefaultConfiguration] Request body: [{"name":"en-addon-wna-deploy-arch-ibm-event-notifications","version_locator":"ec4f34f5-486b-43a2-9611-f2eac852b721.259f25e7-702d-4aae-947d-49caf8b65712"},{"name":"deploy-arch-ibm-cloud-monitoring-lfbqbo","version_locator":"7a4d68b4-cf8b-40cd-a3d1-f49aff526eb3.8028a206-0824-4ad6-af24-b9fb70cce2ac-global"},{"name":"deploy-arch-ibm-cos-kdzuur","version_locator":"7a4d68b4-cf8b-40cd-a3d1-f49aff526eb3.30851389-2ab5-4be5-8674-7ef756cb372d-global"},{"name":"deploy-arch-ibm-kms-lxhp15","version_locator":"7a4d68b4-cf8b-40cd-a3d1-f49aff526eb3.bb044371-6bf6-491b-a0fd-1bf77b97c915-global"}]
[TestAddonDefaultConfiguration] Retrying DeployAddonToProject for project 02cc75d7-392d-46e3-bd7b-45782c7177ab after 8.537385574s (attempt 2/10)
[TestAddonDefaultConfiguration] Config already exists in project 02cc75d7-392d-46e3-bd7b-45782c7177ab, treating as success
[TestAddonDefaultConfiguration] DEPLOYMENT STEP: Deployment completed successfully
[TestAddonDefaultConfiguration] Deployed Configurations to Project ID: 02cc75d7-392d-46e3-bd7b-45782c7177ab
[TestAddonDefaultConfiguration] Recovered from panic: runtime error: invalid memory address or nil pointer dereference
Occurred at: /go/pkg/mod/github.com/terraform-ibm-modules/[email protected]/testaddons/tests.go:288
[TestAddonDefaultConfiguration] === END BUFFERED LOG OUTPUT ===
[TestAddonDefaultConfiguration] πŸ”„ Cleaning up resources
[TestAddonDefaultConfiguration] TEST EXECUTION END: TestAddonDefaultConfiguration - RESULT: PASSED
--- FAIL: TestAddonDefaultConfiguration (59.88s)

I'm confused by this output. It says "API request failed" but it also prints evidence that we are retrying "Retrying ... (attempt 2/10)" and mentions "Deployment completed successfully" yet the test still failed. Why did this fail?
Something to do with runtime error: invalid memory address or nil pointer dereference ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions