Skip to content

[ABANDONED] draft of DRIFT region tag tracking#4402

Closed
ace-n wants to merge 10 commits into
masterfrom
drift-parser
Closed

[ABANDONED] draft of DRIFT region tag tracking#4402
ace-n wants to merge 10 commits into
masterfrom
drift-parser

Conversation

@ace-n
Copy link
Copy Markdown

@ace-n ace-n commented Jul 31, 2020

No description provided.

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 31, 2020
@ace-n ace-n added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 31, 2020
Comment thread .kokoro/tests/run_single_test.sh Outdated
EXIT=$?

# Inject region tag data into the test log
REGION_TAG_PARSER_DIR="$PARENT_DIR/region-tag-parser"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use a temporary directory? Also it's great if you make sure the temporary directory will be deleted after the test.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: maybe you can just install them in /opt or somewhere then it will only exists in the container.

/tmp is shared between the container and the host for a reason, so it's probably better to use somewhere else.

@ace-n
Copy link
Copy Markdown
Author

ace-n commented Aug 3, 2020 via email

@ace-n ace-n force-pushed the drift-parser branch 2 times, most recently from 2d097ee to 392f8b1 Compare August 4, 2020 03:18
@ace-n ace-n added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 4, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 4, 2020
@tmatsuo
Copy link
Copy Markdown
Contributor

tmatsuo commented Aug 4, 2020

FYI, you can run the whole test locally. Here is an example for running lint full build:

$ cd python-docs-samples
$ TRAMPOLINE_BUILD_FILE=.kokoro/tests/run_tests.sh RUN_TESTS_SESSION=lint .kokoro/trampoline_v2.sh

For python sessions, you probably want to have secrets locally:

$ cd python-docs-samples
$ scripts/decrypt-secrets.sh # You need permission of course
$ TRAMPOLINE_BUILD_FILE=.kokoro/tests/run_tests.sh RUN_TESTS_SESSION=py-3.7 .kokoro/trampoline_v2.sh

If you want to use your own Cloud projects:

$ cd python-docs-samples
$ cp testing/test-env.tmpl.sh testing/test-env.sh  # and edit it
$ cp /some/where/your-service-account-json.key testing/service-account.json
$ TRAMPOLINE_BUILD_FILE=.kokoro/tests/run_tests.sh RUN_TESTS_SESSION=py-3.7 .kokoro/trampoline_v2.sh

This way, it will run the tests in an identical way as on Kokoro builds, so you can develop it locally without pushing any changes.

@ace-n
Copy link
Copy Markdown
Author

ace-n commented Aug 4, 2020

@tmatsuo thanks! I think this needs to be run on Kokoro itself though, as part of what I'm testing is the ability to export these test results (which I think happens outside the immediate build context).

@ace-n ace-n added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@ace-n ace-n added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@ace-n ace-n added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@ace-n ace-n added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@ace-n ace-n added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@ace-n ace-n changed the title feat: add DRIFT region tag tracking [ABANDONED] draft of DRIFT region tag tracking Aug 15, 2020
@ace-n
Copy link
Copy Markdown
Author

ace-n commented Aug 15, 2020

Closing in favor of #4506

@ace-n ace-n closed this Aug 15, 2020
@ace-n ace-n deleted the drift-parser branch August 15, 2020 01:44
@ace-n ace-n added the kokoro:lite Add this label to only run Python 2.7 tests label Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing. kokoro:lite Add this label to only run Python 2.7 tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants