summary refs log tree commit diff
path: root/kokoro
Commit message (Collapse)AuthorAge
* add docker supported builds and testsZach Reizner2019-05-15
| | | | | | | | | | | | | | | | | BUG=None TEST=docker/build_crosvm_base.sh docker/build_crosvm.sh docker/wrapped_smoke_test.sh docker/crosvm_wrapper.sh kokoro/kokoro_simulator.sh bin/smoke_test Change-Id: I55a805ba6326c3c58973d1fe21172a5e3551c1e2 Reviewed-on: https://chromium-review.googlesource.com/1593723 Commit-Ready: Zach Reizner <zachr@chromium.org> Tested-by: Zach Reizner <zachr@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Dylan Reid <dgreid@chromium.org>
* rust-toolchain: upgrade to Rust 1.33.0Daniel Verkamp2019-04-08
| | | | | | | | | | | | | | BUG=None TEST=build_test CQ-DEPEND=CL:1534743 Change-Id: Ic2d9a89dd65b995510b97221e34653442be10cfa Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1534964 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: David Tolnay <dtolnay@chromium.org>
* kokoro: Install dbus-1 and dbus protosDavid Tolnay2019-04-07
| | | | | | | | | | | | | | | | The trunks interface.proto will be required for the TPM device to communicate TPM commands to the Trunks daemon and receive back TPM responses. BUG=chromium:911799 TEST=kokoro with and without CL:1554982 Change-Id: I557d38172767137c20a108275e0157d9b1f687e6 Reviewed-on: https://chromium-review.googlesource.com/1554879 Commit-Ready: David Tolnay <dtolnay@chromium.org> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Stephen Barber <smbarber@chromium.org>
* kokoro: Update kokoro docker file to manually select featuresJingkui Wang2019-03-16
| | | | | | | | | | | | | And we are not selecting sandboxed libusb BUG=chromium:831850 TEST=cargo test Change-Id: Ie205a410575dfc1f40515dcb2607bf62e2ccd771 Reviewed-on: https://chromium-review.googlesource.com/1377620 Commit-Ready: Jingkui Wang <jkwang@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Zach Reizner <zachr@chromium.org>
* kokoro: Fix docker build step in simulator scriptGabriel2019-03-12
| | | | | | | | | | | | | | | | | | | The old command no longer works as of CL:1419397 because the pkgconfig path in COPY needs to be interpreted relative to the Dockerfile path. The kokoro/README.md instructions were updated in CL:1431356 but the simulator script was not. Patch received via email from Gabriel <g2p.code@gmail.com>. https://github.com/g2p/crosvm/commit/0e6bb00b90d5ee3c002fc95a22217afe90fe0c52 TEST=run kokoro simulator Change-Id: I09d556cab9a4c1942098e0796e39e221f365c3af Reviewed-on: https://chromium-review.googlesource.com/1513497 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Stephen Barber <smbarber@chromium.org>
* kokoro: Add librendernodehost library.Lepton Wu2019-03-06
| | | | | | | | | | | | | This is needed for merging http://crosreview.com/1347330 BUG=None TEST=Build kokoro image and run tests Change-Id: I9a77964ab89ed5d5e9e1b6032ada562aed7278bb Reviewed-on: https://chromium-review.googlesource.com/1503679 Commit-Ready: Lepton Wu <lepton@chromium.org> Tested-by: Lepton Wu <lepton@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Zach Reizner <zachr@chromium.org>
* bin: Add script to run rustfmt against all workspacesDavid Tolnay2019-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | Add a script to run `cargo fmt` on all Rust code contained in crosvm. This is different from `cargo fmt --all` which formats multiple crates but a single workspace only. Crosvm consists of multiple workspaces. Usage: $ bin/fmt To print a diff and exit 1 if code is not formatted, but without changing any files, use: $ bin/fmt --check TEST=those commands TEST=local kokoro Change-Id: I4194509ad3a1bbc829c4b1069d54d940b927113b Reviewed-on: https://chromium-review.googlesource.com/1477498 Commit-Ready: David Tolnay <dtolnay@chromium.org> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Zach Reizner <zachr@chromium.org>
* rust-toolchain: update to Rust 1.32.0Daniel Verkamp2019-02-19
| | | | | | | | | | | | | | | | | | | The Chrome OS Rust toolchain has been updated to Rust 1.32.0[1]; update the version in Kokoro and the rust-toolchain file to match. It looks like there is also one minor formatting change (again). BUG=None TEST=Build kokoro image and run tests [1]: https://chromium-review.googlesource.com/1432733 Change-Id: I5669d99463618e19cb5e957171560dbea33bd5b8 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1470913 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Zach Reizner <zachr@chromium.org>
* kokoro: use version specified in rust-toolchainDaniel Verkamp2019-02-19
| | | | | | | | | | | | | | | | | | | | | Update the default Rust toolchain to the version specified in the rust-toolchain file (which is part of the crosvm source directory, not baked into the Docker image) during each kokoro run. This will let us seamlessly update rust-toolchain without breaking the builds using the existing kokoro Docker image once this change is in place. BUG=None TEST=Build image with 1.31.0, then run test with rust-toolchain 1.32.0 Change-Id: If4f6dffc20af33011d2a96a0cf6b3db3582a2fd0 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1470914 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: David Tolnay <dtolnay@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
* kokoro: Move the crosvm workdirDylan Reid2019-01-26
| | | | | | | | | | | | | | | | | After trying symlinks and bind-mounts and various other shenanigans, give up and move the crosvm working directory to a relative path that is the same as in the chrome OS chroot. This allows other crates in the cros checkout to find the crosvm crates they depend on. Signed-off-by: Dylan Reid <dgreid@chromium.org> Change-Id: I643497f08c59328e02775ad3ac0ef9feafbf2930 Reviewed-on: https://chromium-review.googlesource.com/1436595 Commit-Ready: Chih-Yang Hsia <paulhsia@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
* kokoro: Add a symlink to crosvm for other cratesDylan Reid2019-01-24
| | | | | | | | | | | | | | | | | | Some crates that are needed for crosvm need crates that live inside the crosvm directory. To allow those crates to be used, add a symlink that allows access to the crosvm source code from a path equivalent to that used inside the Chrome OS chroot. In particular, the cras crate is needed by devices and devices needs the data_model and sys_util crates. Creating a platform/crosvm directory parallel to the third_party/adhd directory lets the build of the cras crates find their dependencies. Signed-off-by: Dylan Reid <dgreid@chromium.org> Change-Id: I2a1e28638e80c8008b1ecc29c2b0b69cba1c13e2 Reviewed-on: https://chromium-review.googlesource.com/1433518 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
* kokoro: Avoid docker build from stdin to support COPYDavid Tolnay2019-01-24
| | | | | | | | | | | | | | | | | | | | | | | Under the old command, the build would fail with: Step 15/25 : COPY pkgconfig/* /usr/lib/pkgconfig COPY failed: no source files were specified The Docker documentation at https://docs.docker.com/v18.03/engine/reference/builder/ explains: Note: If you build using STDIN (docker build - < somefile), there is no build context, so COPY cant be used. TEST=it built successfully Change-Id: I4d9fcb085009f4a47d7caecabf6eb711f5cab6b7 Reviewed-on: https://chromium-review.googlesource.com/1431356 Commit-Ready: David Tolnay <dtolnay@chromium.org> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
* kokoro: Add adhd repoDylan Reid2019-01-23
| | | | | | | | | | | | | | A future change will allow crosvm to play audio through cras. To do that it needs to use some crates that live in the adhd repository. Add the repository to the kokoro image at a path where Cargo can find the crates. Change-Id: I1542090ba0db6fd0f3ac60dcc2e7bb35502a4944 Signed-off-by: Dylan Reid <dgreid@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1429311 Commit-Ready: Chih-Yang Hsia <paulhsia@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
* kokoro: Document command for publishing imageDavid Tolnay2019-01-19
| | | | | | | | | | | TEST=I ran it Change-Id: Ib34e45f9d64561e318e4fbc78758d3a0dc191e87 Reviewed-on: https://chromium-review.googlesource.com/1422682 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Stephen Barber <smbarber@chromium.org>
* kokoro: Install libtpm2David Tolnay2019-01-18
| | | | | | | | | | | | | | Required for CL:1387624 which uses libtpm2 as a TPM simulator. BUG=chromium:911799 TEST=build kokoro image, test master as well as TPM CL in it Change-Id: I636be593a245ecd7ac10bc71319dee48e6511e97 Reviewed-on: https://chromium-review.googlesource.com/1419397 Commit-Ready: David Tolnay <dtolnay@chromium.org> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Stephen Barber <smbarber@chromium.org>
* kokoro: install libfdt-devDaniel Verkamp2019-01-17
| | | | | | | | | | | | | | | This is needed to build CL:1370058 on x86-64 platforms. BUG=None TEST=Rebuild kokoro docker image and build proposed CL. Change-Id: I86694140649eb9a2957122f8a2af35fdc4bd4faf Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1415390 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org>
* toolchain: Update to Rust 1.31.0David Tolnay2018-12-13
| | | | | | | | | | | | | | | | | | We updated the production toolchain from 1.30 to 1.31 in CL:1366446. This CL does the same upgrade for the local developer toolchain and Kokoro. The relevant changes are in rust-toolchain and kokoro/Dockerfile. The rest are from rustfmt. TEST=cargo fmt --all -- --check TEST=as described in kokoro/README.md Change-Id: I3b4913f3e237baa36c664b4953be360c09efffd4 Reviewed-on: https://chromium-review.googlesource.com/1374376 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: David Tolnay <dtolnay@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
* crosvm: update kokoro docker file to install libusb-1.0Jingkui Wang2018-12-01
| | | | | | | | | | | | | | Usb emulation depend on libusb. This path install libusb-1.0 to the container. BUG=chromium:831850 TEST=local build docker and run kokoro_simulator.sh Change-Id: I2fa406914bf7cfe9a790ec945e15eb387e964d8e Reviewed-on: https://chromium-review.googlesource.com/1356766 Commit-Ready: Jingkui Wang <jkwang@google.com> Tested-by: Jingkui Wang <jkwang@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
* kokoro: add presubmit-cr.cfgStephen Barber2018-11-27
| | | | | | | | | | | | | Add a kokoro build for running with Code-Review +2 labels. BUG=none TEST=kokoro Change-Id: I54acf306f5de92c83f52d00e7f2c66b7cadf7e36 Reviewed-on: https://chromium-review.googlesource.com/1351216 Commit-Ready: Stephen Barber <smbarber@chromium.org> Tested-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
* kokoro: make output slightly more verboseZach Reizner2018-11-09
| | | | | | | | | | | | | | | This change includes relevant toolchain versions and some echos announcing the stages of testing. This should make kokoro's logs a bit easier to diagnose. TEST=kokoro_simulator.sh BUG=None Change-Id: I6d51d8ae6618a244338605d61882eeedcb1f5b79 Reviewed-on: https://chromium-review.googlesource.com/1324689 Commit-Ready: Zach Reizner <zachr@chromium.org> Tested-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Stephen Barber <smbarber@chromium.org>
* kokoro: update to Rust 1.30.0Daniel Verkamp2018-10-31
| | | | | | | | | | | | | Also add g++ to the apt package list, since minijail now requires it. BUG=None TEST=Rebuild Docker container and run tests Change-Id: I3d5cee0fa626e840037ae83537bdf891b4489a49 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1307815 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Zach Reizner <zachr@chromium.org>
* kokoro: add rustfmt checkDaniel Verkamp2018-10-25
| | | | | | | | | | | | | | | Also add the standard Chromium copyright header to make the pre-submit check happy. BUG=None TEST=Run manually with docker and verify it catches incorrect formatting Change-Id: I85b7736e9efe97e56bde99eee0f23b213d3b7523 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1296984 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
* kokoro: add continuous configStephen Barber2018-10-12
| | | | | | | | | | | BUG=none TEST=run kokoro CI Change-Id: If231d30581d511807a1d7a03119d3243bb0078b1 Reviewed-on: https://chromium-review.googlesource.com/1277882 Commit-Ready: Stephen Barber <smbarber@chromium.org> Tested-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
* kokoro: build and run all crosvm unit tests in dockerZach Reizner2018-09-22
| | | | | | | | | | | TEST=run kokoro presubmit BUG=b:73822503 Change-Id: Ica341fd8a064f4deb64fecbd4277ed6cc285ef2d Reviewed-on: https://chromium-review.googlesource.com/1236888 Commit-Ready: Zach Reizner <zachr@chromium.org> Tested-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Stephen Barber <smbarber@chromium.org>
* kokoro: add initial presubmit script and configStephen Barber2018-09-21
BUG=b:73822503 TEST=run kokoro presubmit Change-Id: Id128de2300a76f8a359521c83b371e9b743bc71b Reviewed-on: https://chromium-review.googlesource.com/964601 Commit-Ready: Stephen Barber <smbarber@chromium.org> Tested-by: Stephen Barber <smbarber@chromium.org> Tested-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>