Verified Commit 6527da9f authored by boklm's avatar boklm
Browse files

Bug 40105: Only run tools/trigger-test-pipeline.py for supported platforms

Add trigger_test_pipeline option to only enable running
tools/trigger-test-pipeline.py on selected builds that are supported
platforms.

This should remove all "failed run" pipeline errors in the email that
are expected failures.
parent 79ffbf80
Loading
Loading
Loading
Loading
Loading
+4 −0
Changes for TBBTestSuite/TestSuite/TorBrowserBuild.pm: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ sub set_tests {
                'torbrowser',
            ],
            publish_dir           => 'nightly-linux-x86_64',
            trigger_test_pipeline => 1,
        },
        {
            name  => 'torbrowser-incrementals-nightly-linux-x86_64',
@@ -110,6 +111,7 @@ sub set_tests {
                'torbrowser',
            ],
            publish_dir           => 'nightly-windows-x86_64',
            trigger_test_pipeline => 1,
        },
        {
            name  => 'torbrowser-incrementals-nightly-windows-x86_64',
@@ -131,6 +133,7 @@ sub set_tests {
                'torbrowser',
            ],
            publish_dir           => 'nightly-macos',
            trigger_test_pipeline => 1,
        },
        {
            name  => 'torbrowser-incrementals-nightly-macos',
@@ -166,6 +169,7 @@ sub set_tests {
                'torbrowser',
            ],
            publish_dir           => 'nightly-android-x86_64',
            trigger_test_pipeline => 1,
        },
        {
            name  => 'torbrowser-nightly-android-aarch64',
+1 −1
Changes for config/tb-build-06.torproject.org: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ my $test_post = sub {
    my ($tbbinfos, $test) = @_;
    run_rsync();

    return unless $test->{type} eq 'rbm_build';
    return unless $test->{trigger_test_pipeline};
    return unless $test->{results} && $test->{results}{success};
    return unless $test->{publish_dir};

+2 −2
Changes for tmpl/details_rbm_build.html: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
[% IF tbbfiles.$tbbfile.publish_url %]
    <li><a href="[% tbbfiles.$tbbfile.publish_url %]/[% test.publish_dir %]">build files</a></li>
[% END %]
[% IF test.gitlab_pipeline_url %]
    <li>GitLab test pipeline: <a href="[% test.gitlab_pipeline_url %]">[% test.gitlab_pipeline_url %]</a></li>
[% IF IF test.trigger_test_pipeline && test.results.success %]
    <li><a href="[% test.gitlab_pipeline_url %]">GitLab test pipeline</a> (<a href="results-[% tbbfile %]/[% test.name %].trigger-test-pipeline.stderr.txt">trigger stderr</a>)</li>
[% END %]
</ul>
+1 −1
Changes for tmpl/report_tor-browser_build.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ Results
[% IF test.results -%]
  [% test.name %]: [% test.results.success ? 'ok' : 'failed (' _ test.fail_type _ ')' %]

  [%- IF test.type == 'rbm_build' -%]
  [%- IF test.trigger_test_pipeline && test.results.success -%]
    GitLab test pipeline: [% test.gitlab_pipeline_url ? test.gitlab_pipeline_url : 'failed run' %]

  [%- END -%]