From 2d28f36b8543cff769b6adf8c1d4fe02a053917f Mon Sep 17 00:00:00 2001 From: Michael Sarahan Date: Fri, 17 Jan 2025 08:20:30 -0600 Subject: [PATCH 1/3] only run telemetry summary for run attempt = 1 --- telemetry-dispatch-summarize/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telemetry-dispatch-summarize/action.yml b/telemetry-dispatch-summarize/action.yml index b1b8094..385e4be 100644 --- a/telemetry-dispatch-summarize/action.yml +++ b/telemetry-dispatch-summarize/action.yml @@ -12,4 +12,6 @@ runs: using: 'composite' steps: - uses: rapidsai/shared-actions/telemetry-impls/load-then-clone@main + if: github.run_attempt == '1' - uses: ./shared-actions/telemetry-impls/summarize + if: github.run_attempt == '1' From 59147a68f1338940ff908d3a31148ce7e9bc48df Mon Sep 17 00:00:00 2001 From: Michael Sarahan Date: Fri, 17 Jan 2025 08:43:52 -0600 Subject: [PATCH 2/3] add debugging output --- telemetry-dispatch-summarize/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/telemetry-dispatch-summarize/action.yml b/telemetry-dispatch-summarize/action.yml index 385e4be..047ff96 100644 --- a/telemetry-dispatch-summarize/action.yml +++ b/telemetry-dispatch-summarize/action.yml @@ -11,7 +11,9 @@ description: | runs: using: 'composite' steps: + - shell: bash + run: echo "test output to verify branch" - uses: rapidsai/shared-actions/telemetry-impls/load-then-clone@main - if: github.run_attempt == '1' + if: ${{ github.run_attempt == '1' }} - uses: ./shared-actions/telemetry-impls/summarize - if: github.run_attempt == '1' + if: ${{ github.run_attempt == '1' }} From 4bd68c50d98de3a5ca2834e615cd5cbe00d810f4 Mon Sep 17 00:00:00 2001 From: Mike Sarahan Date: Fri, 17 Jan 2025 09:30:52 -0600 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Bradley Dice --- telemetry-dispatch-summarize/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telemetry-dispatch-summarize/action.yml b/telemetry-dispatch-summarize/action.yml index 047ff96..2f05606 100644 --- a/telemetry-dispatch-summarize/action.yml +++ b/telemetry-dispatch-summarize/action.yml @@ -11,9 +11,10 @@ description: | runs: using: 'composite' steps: - - shell: bash - run: echo "test output to verify branch" - uses: rapidsai/shared-actions/telemetry-impls/load-then-clone@main if: ${{ github.run_attempt == '1' }} - uses: ./shared-actions/telemetry-impls/summarize if: ${{ github.run_attempt == '1' }} + - shell: bash + run: echo "Skipping telemetry summary on rerun jobs." + if: ${{ github.run_attempt != '1' }}