Uh oh!
There was an error while loading. Please reload this page.
Monitoring: Fix environment variables for VPC tests. - #8302
Conversation
steinwaywhw
commented
Jun 13, 2019
Hi @busunkim96 sorry I miscommunicated in our last thread. Could you keep the environment variable names as is without changing them? I believe the VPC team sets "PROJECT_ID" when they run the tests. |
steinwaywhw
commented
Jun 13, 2019
I think @bmccutchon knows better about what environment variables the VPCSC team needs. |
busunkim96
commented
Jun 13, 2019
I changed it as we also use PROJECT_ID as our default system test project. I'll poke around a bit more to see what the best way to sort this out is. Thanks for the heads up! |
bmccutchon
commented
Jun 14, 2019
Yes, we do set PROJECT_ID in VPCSC tests. |
tseaver
commented
Jul 30, 2019
Both Container Analysis and Grafeas jobs failed with "Test Fusion Url (This url will not work until build finishes)". I have tagged Kokoro to re-run the tests. |
tseaver
left a comment
There was a problem hiding this comment.
ISTM that the whole TestVPCServiceControl testcase class is conditional on the environment variables being set. Would we be better off moving the pytest.mark.skipif stuff to decorate the class, rather than the individual methods?
bmccutchon
commented
Aug 7, 2019
We (VPCSC) would actually prefer it if as many of these tests as possible are not skipped on your CI so that we can more easily tell whether a failure is VPCSC-related. (If it's also failing on your CI, it's almost certainly not a VPCSC error.) |
busunkim96
commented
Aug 7, 2019
@bmccutchon That sounds good. This also came up for the Asset VPC tests. I'll work on resolving the environment variable/test runs today. |
busunkim96
left a comment
There was a problem hiding this comment.
@bmccutchon I'm still having a bit of trouble rationalizing the CI setup. Could you look over this and make sure I have the correct understanding?
PROJECT_ID - a project inside the VPCSC perimeterGOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT - a project outside the VPCSC perimeterGOOGLE_CLOUD_TESTS_IN_VPCSC - "true" in the VPCSC testing environment
Once this is correct I'll make another PR to fix the other VPCSC tests.
Thanks!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bmccutchon
commented
Aug 19, 2019
Your understanding is correct. |
Follow up to #8295.
CC @steinwaywhw