Mocked GCE metadata to fix the Stackdriver local test failure#4215
Mocked GCE metadata to fix the Stackdriver local test failure#4215markmandel merged 3 commits intoagones-dev:mainfrom
Conversation
|
Build Failed 😭 Build Id: 2f97232d-0403-4b6c-9155-aa4529a8fe81 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Succeeded 🥳 Build Id: bd47cb7a-d980-4e6b-944f-d6166be50bab The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
markmandel
left a comment
There was a problem hiding this comment.
I think this is the best options - the only other option I came up with was to have a Fatal handler on Logrus:
https://github.com/sirupsen/logrus?tab=readme-ov-file#fatal-handlers
But since we're testing for "NoPanic", probably better to mock the metadata service.
@igooch I'm approving, but checking if you any have any objections?
|
Build Succeeded 🥳 Build Id: f7ae95fc-346b-4f6f-abbd-ffa35cfbc813 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
What type of PR is this?
/kind bug
What this PR does / Why we need it:
Fix Stackdriver metrics test by mocking GCE metadata server
Which issue(s) this PR fixes:
Closes #4212
Special notes for your reviewer: