Skip to content

Run java aarch64 tests on the CI (with an emulator)#8485

Merged
jtattermusch merged 2 commits into
protocolbuffers:masterfrom
jtattermusch:run_java_aarch64_test
Apr 26, 2021
Merged

Run java aarch64 tests on the CI (with an emulator)#8485
jtattermusch merged 2 commits into
protocolbuffers:masterfrom
jtattermusch:run_java_aarch64_test

Conversation

@jtattermusch
Copy link
Copy Markdown
Contributor

@jtattermusch jtattermusch commented Apr 13, 2021

Based on #8479 (only the last few commits need to be reviewed).

  • build protoc under crosscompiler
  • then build & tests java code under qemu emulator.

Example passing adhoc run: http://sponge2.corp.google.com/95eaabd8-a929-4dfd-839a-4b4bef078391

@jtattermusch
Copy link
Copy Markdown
Contributor Author

@dlj-NaN please review or assign to the right reviewer for protobuf java.

@jtattermusch jtattermusch changed the title Run java aarch64 test Run java aarch64 tests on the CI (with an emulator) Apr 14, 2021
@fowles fowles requested review from fowles and perezd and removed request for dlj-NaN April 22, 2021 15:08
Copy link
Copy Markdown
Contributor

@fowles fowles left a comment

Choose a reason for hiding this comment

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

pzd has been working on java tests lately. Please wait for his review

# create a simple shell wrapper that runs crosscompiled protoc under qemu
echo '#!/bin/bash' >protoc_qemu_wrapper.sh
echo 'exec qemu-aarch64 "../src/protoc" "$@"' >>protoc_qemu_wrapper.sh
chmod ugo+x protoc_qemu_wrapper.sh
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.

pull request says java, but this was also part of your python PR...

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.

It's rebased now (this PR depended on some files introduced by they python PR).

set -ex

# Change to repo root
cd $(dirname $0)/../../..
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.

cd $(git rev-parse --show-toplevel)

seems more reliable than counting directories

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.

Comment thread kokoro/linux/python_aarch64/build.sh
Copy link
Copy Markdown
Contributor Author

@jtattermusch jtattermusch left a comment

Choose a reason for hiding this comment

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

I rebased the PR after merging the python PR, so now the stuff to review is only java related.

set -ex

# Change to repo root
cd $(dirname $0)/../../..
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.

@jtattermusch
Copy link
Copy Markdown
Contributor Author

@perezd please review so we can merge this soon.

Copy link
Copy Markdown
Contributor

@perezd perezd left a comment

Choose a reason for hiding this comment

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

LGTM!

@jtattermusch jtattermusch merged commit 78a8d67 into protocolbuffers:master Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants