Skip to content

Commit

Permalink
Break out test targets into a separate config
Browse files Browse the repository at this point in the history
b/354062546
  • Loading branch information
isarkis committed Dec 17, 2024
1 parent bd53a69 commit 456d4de
Show file tree
Hide file tree
Showing 10 changed files with 106 additions and 84 deletions.
22 changes: 12 additions & 10 deletions .github/config/android-arm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@
"android-arm"
],
"targets": [
"base_unittests",
"sql_unittests",
"net_unittests",
"url_unittests",
"ipc_tests",
"mojo_unittests",
"gpu_unittests",
"gin_unittests",
"blink_unittests",
"media_unittests",
"content_shell",
"system_webview_apk",
"system_webview_shell_apk",
"cobalt:gn_all"
],
"gtest_targets": [
"base_unittests",
"blink_unittests",
"gin_unittests",
"gpu_unittests",
"ipc_tests",
"media_unittests",
"mojo_unittests",
"net_unittests",
"sql_unittests",
"url_unittests"
],
"test_on_device": true,
"includes": [
{
Expand Down
22 changes: 12 additions & 10 deletions .github/config/android-arm64.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@
"android-arm64"
],
"targets": [
"base_unittests",
"sql_unittests",
"net_unittests",
"url_unittests",
"ipc_tests",
"mojo_unittests",
"gpu_unittests",
"gin_unittests",
"blink_unittests",
"media_unittests",
"content_shell",
"system_webview_apk",
"system_webview_shell_apk",
"cobalt:gn_all"
],
"gtest_targets": [
"base_unittests",
"blink_unittests",
"gin_unittests",
"gpu_unittests",
"ipc_tests",
"media_unittests",
"mojo_unittests",
"net_unittests",
"sql_unittests",
"url_unittests"
],
"test_on_device": true,
"includes": [
{
Expand Down
22 changes: 12 additions & 10 deletions .github/config/android-x86.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@
"android-x86"
],
"targets": [
"base_unittests",
"sql_unittests",
"net_unittests",
"url_unittests",
"ipc_tests",
"mojo_unittests",
"gpu_unittests",
"gin_unittests",
"blink_unittests",
"media_unittests",
"content_shell",
"system_webview_apk",
"system_webview_shell_apk",
"cobalt:gn_all"
],
"gtest_targets": [
"base_unittests",
"blink_unittests",
"gin_unittests",
"gpu_unittests",
"ipc_tests",
"media_unittests",
"mojo_unittests",
"net_unittests",
"sql_unittests",
"url_unittests"
],
"includes": [
{
"name":"x86",
Expand Down
22 changes: 12 additions & 10 deletions .github/config/chromium_android-arm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@
"chromium_android-arm"
],
"targets": [
"base_unittests",
"sql_unittests",
"net_unittests",
"url_unittests",
"ipc_tests",
"mojo_unittests",
"gpu_unittests",
"gin_unittests",
"blink_unittests",
"media_unittests",
"content_shell",
"system_webview_apk",
"system_webview_shell_apk"
],
"gtest_targets": [
"base_unittests",
"blink_unittests",
"gin_unittests",
"gpu_unittests",
"ipc_tests",
"media_unittests",
"mojo_unittests",
"net_unittests",
"sql_unittests",
"url_unittests"
],
"includes": [
{
"name":"arm",
Expand Down
22 changes: 12 additions & 10 deletions .github/config/chromium_android-arm64.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@
"chromium_android-arm64"
],
"targets": [
"base_unittests",
"sql_unittests",
"net_unittests",
"url_unittests",
"ipc_tests",
"mojo_unittests",
"gpu_unittests",
"gin_unittests",
"blink_unittests",
"media_unittests",
"content_shell",
"system_webview_apk",
"system_webview_shell_apk"
],
"gtest_targets": [
"base_unittests",
"blink_unittests",
"gin_unittests",
"gpu_unittests",
"ipc_tests",
"media_unittests",
"mojo_unittests",
"net_unittests",
"sql_unittests",
"url_unittests"
],
"includes": [
{
"name":"arm64",
Expand Down
22 changes: 12 additions & 10 deletions .github/config/chromium_android-x86.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@
"chromium_android-x86"
],
"targets": [
"base_unittests",
"sql_unittests",
"net_unittests",
"url_unittests",
"ipc_tests",
"mojo_unittests",
"gpu_unittests",
"gin_unittests",
"blink_unittests",
"media_unittests",
"content_shell",
"system_webview_apk",
"system_webview_shell_apk"
],
"gtest_targets": [
"base_unittests",
"blink_unittests",
"gin_unittests",
"gpu_unittests",
"ipc_tests",
"media_unittests",
"mojo_unittests",
"net_unittests",
"sql_unittests",
"url_unittests"
],
"includes": [
{
"name":"x86",
Expand Down
24 changes: 13 additions & 11 deletions .github/config/chromium_linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
"chromium_linux-x64x11"
],
"targets": [
"base_unittests",
"sql_unittests",
"net_unittests",
"url_unittests",
"ipc_tests",
"mojo_unittests",
"gpu_unittests",
"gin_unittests",
"blink_unittests",
"media_unittests",
"content_shell"
"content_shell"
],
"gtest_targets": [
"base_unittests",
"blink_unittests",
"gin_unittests",
"gpu_unittests",
"ipc_tests",
"media_unittests",
"mojo_unittests",
"net_unittests",
"sql_unittests",
"url_unittests"
],
"includes": [
{
Expand Down
22 changes: 12 additions & 10 deletions .github/config/linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
"linux-x64x11"
],
"targets": [
"base_unittests",
"sql_unittests",
"url_unittests",
"ipc_tests",
"mojo_unittests",
"gpu_unittests",
"gin_unittests",
"media_unittests",
"content_shell",
"cobalt:gn_all"
"content_shell",
"cobalt:gn_all"
],
"gtest_targets": [
"base_unittests",
"ipc_tests",
"gin_unittests",
"gpu_unittests",
"media_unittests",
"mojo_unittests",
"sql_unittests",
"url_unittests"
],
"includes": [
{
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ jobs:
run: |
targets=$(cat ${GITHUB_WORKSPACE}/.github/config/${{ inputs.platform }}.json | jq -c '.targets | join(" ")')
echo "targets=${targets}" >> $GITHUB_ENV
- id: set-test-targets
shell: bash
run: |
gtest_targets=$(cat ${GITHUB_WORKSPACE}/.github/config/${{ inputs.platform }}.json | jq -c '.gtest_targets | join(" ")')
echo "gtest_targets=${gtest_targets}" >> $GITHUB_ENV
- id: set-includes
shell: bash
run: |
Expand All @@ -85,6 +90,7 @@ jobs:
outputs:
platforms: ${{ env.platforms }}
targets: ${{ env.targets }}
gtest_targets: ${{ env.gtest_targets }}
includes: ${{ env.includes }}
docker_service: ${{ env.docker_service }}
test_on_host: ${{ env.test_on_host }}
Expand Down Expand Up @@ -159,7 +165,7 @@ jobs:
# TODO(bug?): android debug builds are broken.
if: ${{ ! (startsWith(matrix.platform, 'android') && matrix.config == 'debug') }}
with:
targets: ${{ needs.initialize.outputs.targets }}
targets: ${{ needs.initialize.outputs.targets }} ${{ needs.initialize.outputs.gtest_targets }}
test_artifacts_key: ${{ env.TEST_ARTIFACTS_KEY }}
- name: Upload On Device Test Artifacts
if: matrix.config == 'devel' && needs.initialize.outputs.test_on_device == 'true'
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
build:
context: cobalt/docker/linux
cache_from:
- ghcr.io/youtube/cobalt/linux:latest
image: ghcr.io/youtube/cobalt/linux:latest
- ghcr.io/youtube/cobalt_sandbox/linux:latest
image: ghcr.io/youtube/cobalt_sandbox/linux:latest
platform: linux/amd64
environment:
- DEPOT_TOOLS_UPDATE=0

0 comments on commit 456d4de

Please sign in to comment.