Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add instructions for building old revisions #1648

Merged
merged 1 commit into from
Dec 12, 2018

Conversation

wchargin
Copy link
Contributor

Summary:
When bisecting or exploring the history, it can be useful to build old
commits. Unfortunately, due to backward-incompatible changes in Bazel,
this is not possible natively. This commit describes a workaround.

It’s unfortunately not too discoverable in DEVELOPMENT.md, but at
least it’s somewhere.

Test Plan:

$ git checkout -q "$(git rev-list origin/master --before=2018-08-01 -n 1)"
$ bazel build //tensorboard 2>&1 | tail -n 1
FAILED: Build did NOT complete successfully
$ git cherry-pick bc4e7a6e5517daf918433a8f5983fc6bd239358f >/dev/null
$ bazel build //tensorboard 2>&1 | tail -n 1
INFO: Build completed successfully, 117 total actions

wchargin-branch: docs-build-old

Summary:
When bisecting or exploring the history, it can be useful to build old
commits. Unfortunately, due to backward-incompatible changes in Bazel,
this is not possible natively. This commit describes a workaround.

It’s unfortunately not too discoverable in `DEVELOPMENT.md`, but at
least it’s somewhere.

Test Plan:

    $ git checkout -q "$(git rev-list origin/master --before=2018-08-01 -n 1)"
    $ bazel build //tensorboard 2>&1 | tail -n 1
    FAILED: Build did NOT complete successfully
    $ git cherry-pick bc4e7a6 >/dev/null
    $ bazel build //tensorboard 2>&1 | tail -n 1
    INFO: Build completed successfully, 117 total actions

wchargin-branch: docs-build-old
@wchargin wchargin requested a review from nfelt November 29, 2018 23:31
@jart
Copy link
Contributor

jart commented Nov 30, 2018

I agree. Please note the Bazel team has many more pointless breaking changes in the works: https://docs.bazel.build/versions/master/skylark/backward-compatibility.html

Copy link
Contributor

@nfelt nfelt left a comment

Choose a reason for hiding this comment

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

Sorry, somehow I missed that I had been sent this review

DEVELOPMENT.md Show resolved Hide resolved
@wchargin wchargin merged commit 83ad52b into master Dec 12, 2018
@wchargin wchargin deleted the wchargin-docs-build-old branch December 12, 2018 18:10
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.

3 participants