Skip to content

Commit

Permalink
Update kokoro path to cobalt/devinfra/kokoro
Browse files Browse the repository at this point in the history
Issue: 365150653
Reviewed-on: #4440
  • Loading branch information
dahlstrom-g committed Nov 15, 2024
1 parent 7fea434 commit ed1ccc2
Show file tree
Hide file tree
Showing 33 changed files with 42 additions and 42 deletions.
10 changes: 5 additions & 5 deletions cobalt/devinfra/kokoro/bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKSPACE_COBALT="${KOKORO_ARTIFACTS_DIR}/git/src"
cd "${WORKSPACE_COBALT}"

# Clean up workspace on exit or error.
trap "bash ${WORKSPACE_COBALT}/internal/kokoro/bin/cleanup.sh" EXIT INT TERM
trap "bash ${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/bin/cleanup.sh" EXIT INT TERM


# Linux build script.
Expand All @@ -27,9 +27,9 @@ pipeline () {
echo "Evergreen Loader is configured."
# Deploy static manifest.json (see b/338287855#comment24)
if [[ "${PLATFORM}" =~ "evergreen-arm-hardfp" ]]; then
cp "${WORKSPACE_COBALT}/internal/kokoro/bin/manifest.json" "${out_dir}/install/usr/share/manifest.json"
cp "${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/bin/manifest.json" "${out_dir}/install/usr/share/manifest.json"
elif [[ "${PLATFORM}" =~ "evergreen-arm-softfp" ]]; then
cp "${WORKSPACE_COBALT}/internal/kokoro/bin/manifest.json" "${WORKSPACE_COBALT}/chrome/updater/version_manifest/manifest.json"
cp "${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/bin/manifest.json" "${WORKSPACE_COBALT}/chrome/updater/version_manifest/manifest.json"
fi

local bootloader_out_dir="${WORKSPACE_COBALT}/out/${BOOTLOADER}_${CONFIG}"
Expand All @@ -55,13 +55,13 @@ pipeline () {
# Create release package.
if [[ "${PLATFORM}" =~ "android" ]]; then
# Creates Android package directory.
python3 "${WORKSPACE_COBALT}/internal/kokoro/build/android/simple_packager.py" \
python3 "${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/build/android/simple_packager.py" \
"${out_dir}" \
"${package_dir}" \
"${WORKSPACE_COBALT}"
elif [[ "${PLATFORM}" =~ "evergreen" ]]; then
# Creates Evergreen package directory.
python3 "${WORKSPACE_COBALT}/internal/kokoro/build/evergreen/simple_packager.py" \
python3 "${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/build/evergreen/simple_packager.py" \
"${out_dir}" \
"${package_dir}" \
"${bootloader_out_dir:-}"
Expand Down
4 changes: 2 additions & 2 deletions cobalt/devinfra/kokoro/bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ run_package_release_pipeline () {
# Create release package.
if [[ "${PLATFORM}" =~ "android" ]]; then
# Creates Android package directory.
python3 "${WORKSPACE_COBALT}/internal/kokoro/build/android/simple_packager.py" \
python3 "${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/build/android/simple_packager.py" \
"${out_dir}" \
"${package_dir}" \
"${WORKSPACE_COBALT}"
Expand All @@ -311,7 +311,7 @@ run_package_release_pipeline () {
bootloader_out_dir="${WORKSPACE_COBALT}/out/${BOOTLOADER}_${CONFIG}"
fi
# Creates Evergreen package directory.
python3 "${WORKSPACE_COBALT}/internal/kokoro/build/evergreen/simple_packager.py" \
python3 "${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/build/evergreen/simple_packager.py" \
"${out_dir}" \
"${package_dir}" \
"${bootloader_out_dir:-}"
Expand Down
4 changes: 2 additions & 2 deletions cobalt/devinfra/kokoro/bin/dind_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ pipeline () {

# Deploy static manifest.json (see b/338287855#comment24)
if [[ "${PLATFORM}" =~ "evergreen-arm-hardfp" ]]; then
cp "${WORKSPACE_COBALT}/internal/kokoro/bin/manifest.json" "${out_dir}/install/usr/share/manifest.json"
cp "${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/bin/manifest.json" "${out_dir}/install/usr/share/manifest.json"
elif [[ "${PLATFORM}" =~ "evergreen-arm-softfp" ]]; then
cp "${WORKSPACE_COBALT}/internal/kokoro/bin/manifest.json" "${WORKSPACE_COBALT}/chrome/updater/version_manifest/manifest.json"
cp "${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/bin/manifest.json" "${WORKSPACE_COBALT}/chrome/updater/version_manifest/manifest.json"
fi

local bootloader_out_dir="${WORKSPACE_COBALT}/out/${BOOTLOADER}_${CONFIG}"
Expand Down
4 changes: 2 additions & 2 deletions cobalt/devinfra/kokoro/bin/dind_builder_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ export WORKSPACE_COBALT="${KOKORO_ARTIFACTS_DIR}/git/src"
cd "${WORKSPACE_COBALT}"

# Clean up workspace on exit or error.
trap "bash ${WORKSPACE_COBALT}/internal/kokoro/bin/cleanup.sh" EXIT INT TERM
trap "bash ${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/bin/cleanup.sh" EXIT INT TERM

configure_dind_environment

configure_environment

set -x
# The python script is responsible for running containerized Cobalt builds.
python3 "${WORKSPACE_COBALT}/internal/kokoro/bin/dind_py/main_build_image_and_run.py"
python3 "${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/bin/dind_py/main_build_image_and_run.py"

# The following script is responsible for creating packages and nightly builds
# which do not need to run inside Cobalt containers.
Expand Down
4 changes: 2 additions & 2 deletions cobalt/devinfra/kokoro/bin/dind_py/dind_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# This build script is what needs to be invoked to run the full Cobalt build
# within the inner Docker container.
_INTERNAL_KOKORO_BUILD_SCRIPT = 'internal/kokoro/bin/dind_build.sh'
_INTERNAL_KOKORO_BUILD_SCRIPT = 'cobalt/devinfra/kokoro/bin/dind_build.sh'

_WORKSPACE_COBALT_VAR = 'WORKSPACE_COBALT'

Expand Down Expand Up @@ -134,7 +134,7 @@ def run_cobalt_build(image_to_run, src_root):
os.environ['FULL_IMAGE_TARGET'] = image_to_run
service = _DOCKER_COMPOSE_SERVICE_TARGET
script = os.path.join(src_root, _INTERNAL_KOKORO_BUILD_SCRIPT)
compose_file = os.path.join(src_root, 'internal/kokoro/docker-compose.yml')
compose_file = os.path.join(src_root, 'cobalt/devinfra/kokoro/docker-compose.yml')
compose_cmd = (f'docker compose -f {compose_file} ' +
f'run -T {service} /bin/bash -c {script}')
utils.exec_cmd(compose_cmd)
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/bin/dind_py/test-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ services:
foo_test:
image: foo_test
build:
context: ${COBALT_SRC}/internal/kokoro/bin/dind_py
context: ${COBALT_SRC}/cobalt/devinfra/kokoro/bin/dind_py
dockerfile: ./Dockerfile.test
4 changes: 2 additions & 2 deletions cobalt/devinfra/kokoro/bin/dind_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ export WORKSPACE_COBALT="${KOKORO_ARTIFACTS_DIR}/git/src"
cd "${WORKSPACE_COBALT}"

# Clean up workspace on exit or error.
trap "bash ${WORKSPACE_COBALT}/internal/kokoro/bin/cleanup.sh" EXIT INT TERM
trap "bash ${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/bin/cleanup.sh" EXIT INT TERM

configure_dind_environment

configure_environment

set -x
# The python script is responsible for running containerized Cobalt builds.
python3 "${WORKSPACE_COBALT}/internal/kokoro/bin/dind_py/main_pull_image_and_run.py"
python3 "${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/bin/dind_py/main_pull_image_and_run.py"

# The following script is responsible for creating packages and nightly builds
# which do not need to run inside Cobalt containers.
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/bin/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -ux
WORKSPACE_COBALT="${KOKORO_ARTIFACTS_DIR}/git/src"

### Clean up workspace on exit or error.
trap "bash ${WORKSPACE_COBALT}/internal/kokoro/bin/cleanup.sh" EXIT INT TERM
trap "bash ${WORKSPACE_COBALT}/cobalt/devinfra/kokoro/bin/cleanup.sh" EXIT INT TERM

configure_environment

Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/android/arm/common.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '../../common.gcl' as common

build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'EXTRA_GN_ARGUMENTS'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/android/arm/qa.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_builder_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_builder_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/android/arm64/common.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '../../common.gcl' as common

build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'EXTRA_GN_ARGUMENTS'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/android/arm64/qa.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_builder_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_builder_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/android/x86/common.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '../../common.gcl' as common

build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'EXTRA_GN_ARGUMENTS'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/android/x86/qa.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_builder_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_builder_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '../../common.gcl' as common

build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'BOOTLOADER'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_builder_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_builder_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '../../common.gcl' as common

build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'BOOTLOADER'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_builder_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_builder_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/evergreen/arm64/common.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '../../common.gcl' as common

build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'EXTRA_GN_ARGUMENTS'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_builder_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_builder_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/evergreen/x64/common.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '../../common.gcl' as common

build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'BOOTLOADER'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_builder_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_builder_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/linux/grtev5/common.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '../../common.gcl' as common

build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'EXTRA_GN_ARGUMENTS'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/linux/grtev5/qa.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_builder_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_builder_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/linux/internal/common.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '../../common.gcl' as common

build = common.build {
build_file = 'src/internal/kokoro/bin/dind_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_runner.sh'
env_vars = super.env_vars + [
{
key = 'EXTRA_GN_ARGUMENTS'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/build/linux/internal/qa.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'common.gcl' as common

config build = common.build {
build_file = 'src/internal/kokoro/bin/dind_builder_runner.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/dind_builder_runner.sh'
env_vars = super.env_vars + [
{
key = 'CONFIG'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/lint/presubmit.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// validation: gcl --message=kokoro.BuildConfig --objtype=config group2.gcl appendascii

config build = {
build_file = 'src/internal/kokoro/bin/lint.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/lint.sh'
env_vars = [
{
key = 'GN_HASH'
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/odt/common.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// proto-message: BuildConfig

build = {
build_file = 'src/internal/kokoro/bin/on_device_test.sh'
build_file = 'src/cobalt/devinfra/kokoro/bin/on_device_test.sh'
before_action = [
{
invoke_blaze = {
Expand Down
2 changes: 1 addition & 1 deletion cobalt/devinfra/kokoro/third-party/mac/brew/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Follow these direction to add new package:

1. Configure your MacOS jobs to run on MACOS_EXTERNAL cluster. This will allow to
download and install packages from the web.
2. Add the following to internal/kokoro/bin/build_mac.sh and make CL:
2. Add the following to cobalt/devinfra/kokoro/bin/build_mac.sh and make CL:

+HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_INSTALL_FROM_API=1 \
brew install sccache
Expand Down

0 comments on commit ed1ccc2

Please sign in to comment.