Skip to content

Conversation

lukedirtwalker
Copy link
Collaborator

@lukedirtwalker lukedirtwalker commented Dec 17, 2019

They are generated by a very simple bash loop.
Also this PR improves the cleanup and makes sure that the environment is clean before executing tests.

This change is Reviewable

@lukedirtwalker lukedirtwalker force-pushed the pubCI2Acceptance branch 4 times, most recently from 14202f1 to 6452735 Compare December 18, 2019 15:06
For now they are fully written in the pipeline.yml but a generator is also added.
@lukedirtwalker lukedirtwalker changed the title wip acceptance CI: Add acceptance tests to new pipeline Dec 18, 2019
@lukedirtwalker lukedirtwalker marked this pull request as ready for review December 18, 2019 16:04
Copy link
Contributor

@worxli worxli left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 7 files reviewed, 1 unresolved discussion (waiting on @lukedirtwalker)

a discussion (no related file):
I don't see how this approach with the generator can be a good solution. There is nothing to enforce consistency.


Copy link
Collaborator Author

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 8 files reviewed, 1 unresolved discussion (waiting on @worxli)

a discussion (no related file):

Previously, worxli (Lukas Bischofberger) wrote…

I don't see how this approach with the generator can be a good solution. There is nothing to enforce consistency.

Done.


Copy link
Contributor

@worxli worxli left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 7 files at r1, 1 of 3 files at r2.
Reviewable status: 4 of 8 files reviewed, 5 unresolved discussions (waiting on @lukedirtwalker and @worxli)


.buildkite/hooks/post-artifact, line 5 at r2 (raw file):

set -eo pipefail

rm -rf "bazel-testlogs" "logs" "traces" "gen" "gen-cache"

why the quotes?


.buildkite/hooks/pre-exit, line 3 at r2 (raw file):

#!/bin/bash

./scion.sh topo_clean

I don't think this adds any value here.


.buildkite/hooks/pre-exit, line 13 at r2 (raw file):

docker volume prune -f

rm -rf bazel-testlogs logs traces gen gen-cache accept_artifacts

already done in post artifact for most?


.buildkite/pipeline2.sh, line 11 at r2 (raw file):

        echo "  - label: \"Acceptance: $name\""
        echo "    command:"
        echo "      - \"rm -rf \$\$ACCEPTANCE_ARTIFACTS\""

when is this necessary?

Copy link
Collaborator Author

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

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

Reviewable status: 3 of 7 files reviewed, 5 unresolved discussions (waiting on @lukedirtwalker and @worxli)


.buildkite/hooks/post-artifact, line 5 at r2 (raw file):

Previously, worxli (Lukas Bischofberger) wrote…

why the quotes?

Done.


.buildkite/hooks/pre-exit, line 3 at r2 (raw file):

Previously, worxli (Lukas Bischofberger) wrote…

I don't think this adds any value here.

for non-dockerized tests this makes sure that all binaries are gone. Now that prost-artifact doesn't delete the gen folder it should actually work ;)


.buildkite/hooks/pre-exit, line 13 at r2 (raw file):

Previously, worxli (Lukas Bischofberger) wrote…

already done in post artifact for most?

removed post-artifact

Copy link
Collaborator Author

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

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

Reviewable status: 3 of 7 files reviewed, 5 unresolved discussions (waiting on @worxli)


.buildkite/pipeline2.sh, line 11 at r2 (raw file):

Previously, worxli (Lukas Bischofberger) wrote…

when is this necessary?

Hopefully never, removed

Copy link
Contributor

@worxli worxli left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 7 files at r1, 1 of 3 files at r2, 1 of 1 files at r3, 1 of 1 files at r4, 1 of 1 files at r5.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor

@worxli worxli left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r6.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@lukedirtwalker lukedirtwalker merged commit d8fa40a into scionproto:master Dec 19, 2019
@lukedirtwalker lukedirtwalker deleted the pubCI2Acceptance branch December 19, 2019 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants