Skip to content

Clean up CI ASAN & .bazelrc - #8828

Merged
simon-mo merged 4 commits into
ray-project:masterfrom
mehrdadn:ci-cleanup
Jun 16, 2020
Merged

simon-mo merged 4 commits into
ray-project:masterfrom
mehrdadn:ci-cleanup

Conversation

@mehrdadn

@mehrdadn mehrdadn commented Jun 8, 2020 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

ASAN and other Bazel configurations are currently scattered (in some cases, redundantly) across shell scripts and becoming difficult to reason about and maintain; they should all be in .bazelrc as much as possible.

Checks

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@mehrdadn
mehrdadn marked this pull request as ready for review June 8, 2020 17:17
Comment thread ci/travis/install-dependencies.sh Resolved
Comment thread ci/travis/ci.sh Resolved
@simon-mo
simon-mo requested review from edoakes and pcmoritz June 8, 2020 20:35
@edoakes

edoakes commented Jun 8, 2020 •

Copy link
Copy Markdown
Collaborator

@mehrdadn this seems like a collection of unrelated fixes. Any reason these can't be separate PRs? That would be preferable.

@mehrdadn

mehrdadn commented Jun 8, 2020 •

Copy link
Copy Markdown
Contributor Author

@edoakes I've separated them, thanks!

@mehrdadn mehrdadn changed the title Upgrade Bazel, clean up CI & .bazelrc, and resolve some build issues Clean up CI & .bazelrc Jun 9, 2020
@mehrdadn mehrdadn changed the title Clean up CI & .bazelrc Clean up CI ASAN & .bazelrc Jun 9, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 9, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 9, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 9, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 9, 2020
@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/26909/
Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/27161/
Test PASSed.

@simon-mo simon-mo left a comment

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.

LGTM

Comment on lines +106 to +115
translated_path=~/bazel_cache_credential.json
if [ "${OSTYPE}" = msys ]; then # On Windows, we need path translation
translated_path="$(cygpath -m -- "${translated_path}")"
fi
cat <<EOF >> "${HOME}/.bazelrc"
cat <<EOF >> ~/.bazelrc
build --google_credentials="${translated_path}"
EOF
else
echo "Using remote build cache in read-only mode." 1>&2
cat <<EOF >> "${HOME}/.bazelrc"
cat <<EOF >> ~/.bazelrc

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.

what's difference between ${HOME} and ~?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nothing of significance here; I just made that change because it's easier to read and gets rid of unnecessary quotes. But in theory, HOME is an environment variable that can be easily modified to point to anything, whereas ~ is guaranteed to expand to the home directory.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/27164/
Test PASSed.

@simon-mo
simon-mo merged commit 4afa2b3 into ray-project:master Jun 16, 2020
@mehrdadn
mehrdadn deleted the ci-cleanup branch June 16, 2020 00:28
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.

5 participants