Skip to content

Launchable: Enable PTS observation mode #12617

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

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/actions/launchable/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ runs:
echo test_all_report_file='launchable_test_all_report.json' >> $GITHUB_OUTPUT
echo btest_report_file='launchable_btest_report.json' >> $GITHUB_OUTPUT
echo test_spec_report_dir='launchable_test_spec_report' >> $GITHUB_OUTPUT
echo test_all_subset_input_file='launchable_test_all_subset_input.txt' >> $GITHUB_OUTPUT
echo btest_subset_input_file='launchable_btest_subset_input.txt' >> $GITHUB_OUTPUT
echo test_spec_subset_input_file='launchable_test_spec_subset_input.txt' >> $GITHUB_OUTPUT
if: steps.enable-launchable.outputs.enable-launchable

- name: Set environment variables for Launchable
Expand Down Expand Up @@ -158,31 +161,52 @@ runs:
if [ "${test_all_enabled}" = "true" ]; then
launchable record session \
--build "${build_name}" \
--observation \
--flavor os=${{ inputs.os }} \
--flavor test_task=${{ inputs.test-task }} \
--flavor test_opts=${test_opts} \
--test-suite ${test_all_test_suite} \
> "${test_all_session_file}"
find test -name "*_test.rb" -o -name "test_*.rb" | sed 's|^|file=|' > "${test_all_subset_input_file}"
launchable subset \
--non-blocking \
--target 90% \
--session "$(cat "${test_all_session_file}")" \
raw ${test_all_subset_input_file} > /dev/null
echo "TESTS=${TESTS} --launchable-test-reports=${test_all_report_file}" >> $GITHUB_ENV
fi
if [ "${btest_enabled}" = "true" ]; then
launchable record session \
--build "${build_name}" \
--observation \
--flavor os=${{ inputs.os }} \
--flavor test_task=${{ inputs.test-task }} \
--flavor test_opts=${test_opts} \
--test-suite ${btest_test_suite} \
> "${btest_session_file}"
find bootstraptest -name "*_test.rb" -o -name "test_*.rb" | sed 's|^|file=|' > "${btest_subset_input_file}"
launchable subset \
--non-blocking \
--target 90% \
--session "$(cat "${btest_session_file}")" \
raw ${btest_subset_input_file} > /dev/null
echo "BTESTS=${BTESTS} --launchable-test-reports=${btest_report_file}" >> $GITHUB_ENV
fi
if [ "${test_spec_enabled}" = "true" ]; then
launchable record session \
--build "${build_name}" \
--observation \
--flavor os=${{ inputs.os }} \
--flavor test_task=${{ inputs.test-task }} \
--flavor test_opts=${test_opts} \
--test-suite ${test_spec_test_suite} \
> "${test_spec_session_file}"
find spec/ruby -name "*_spec.rb" | sed 's|^|file=|' > "${test_spec_subset_input_file}"
launchable subset \
--non-blocking \
--target 90% \
--session "$(cat "${test_spec_session_file}")" \
raw ${test_spec_subset_input_file} > /dev/null
echo "SPECOPTS=${SPECOPTS} --launchable-test-reports=${test_spec_report_dir}" >> $GITHUB_ENV
fi
if: steps.enable-launchable.outputs.enable-launchable
Expand All @@ -196,6 +220,9 @@ runs:
test_all_report_file: ${{ steps.global.outputs.test_all_report_file }}
btest_report_file: ${{ steps.global.outputs.btest_report_file }}
test_spec_report_dir: ${{ steps.global.outputs.test_spec_report_dir }}
test_all_subset_input_file: ${{ steps.global.outputs.test_all_subset_input_file }}
btest_subset_input_file: ${{ steps.global.outputs.btest_subset_input_file }}
test_spec_subset_input_file: ${{ steps.global.outputs.test_spec_subset_input_file }}

- name: Variables to report Launchable
id: variables
Expand Down Expand Up @@ -261,6 +288,9 @@ runs:
rm -f "${test_report_path}"
rm -f "${btest_report_path}"
rm -fr "${test_spec_report_path}"
rm -f "${test_all_subset_input_file}"
rm -f "${btest_subset_input_file}"
rm -f "${test_spec_subset_input_file}"
if: ${{ always() && steps.enable-launchable.outputs.enable-launchable }}
env:
test_report_path: ${{ steps.variables.outputs.test_report_path }}
Expand All @@ -272,3 +302,6 @@ runs:
test_all_session_file: ${{ steps.global.outputs.test_all_session_file }}
btest_session_file: ${{ steps.global.outputs.btest_session_file }}
test_spec_session_file: ${{ steps.global.outputs.test_spec_session_file }}
test_all_subset_input_file: ${{ steps.global.outputs.test_all_subset_input_file }}
btest_subset_input_file: ${{ steps.global.outputs.btest_subset_input_file }}
test_spec_subset_input_file: ${{ steps.global.outputs.test_spec_subset_input_file }}
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy