From a5c5952d19ca3eaaff88ba57ca107f78bc425d45 Mon Sep 17 00:00:00 2001 From: Allison Piper Date: Sun, 19 May 2024 12:56:35 +0000 Subject: [PATCH] [TEMP] Debugging --- .github/actions/workflow-results/action.yml | 2 +- .../prepare-execution-summary.py | 16 +++++++++++++--- ci/matrix.yaml | 4 ++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/actions/workflow-results/action.yml b/.github/actions/workflow-results/action.yml index 4823ad35459..c989f859daa 100644 --- a/.github/actions/workflow-results/action.yml +++ b/.github/actions/workflow-results/action.yml @@ -87,7 +87,7 @@ runs: continue-on-error: true shell: bash --noprofile --norc -euo pipefail {0} run: | - echo "Generating job summary..." + echo "Generating execution summary..." python3 "${GITHUB_ACTION_PATH}/prepare-execution-summary.py" workflow/workflow.json results/job_times.json - name: Prepare final summary diff --git a/.github/actions/workflow-results/prepare-execution-summary.py b/.github/actions/workflow-results/prepare-execution-summary.py index 226157a7c67..fb789a24424 100755 --- a/.github/actions/workflow-results/prepare-execution-summary.py +++ b/.github/actions/workflow-results/prepare-execution-summary.py @@ -46,7 +46,12 @@ def extract_jobs(workflow): @functools.lru_cache(maxsize=None) def get_sccache_stats(job_id): sccache_file = f'jobs/{job_id}/sccache_stats.json' + print() + print(f'Checking for file {sccache_file}, job {job_id}') if os.path.exists(sccache_file): + print(f'Found file {sccache_file}') + with open(sccache_file) as f: + print(f.read()) with open(sccache_file) as f: return json.load(f) return None @@ -76,7 +81,12 @@ def update_summary_entry(entry, job, job_times=None): entry['job_time'] += job_time entry['step_time'] += command_time - sccache_stats = get_sccache_stats(job["id"]) + try: + sccache_stats = get_sccache_stats(job["id"]) + except: + print(f'Error getting sccache stats for job:\n{job}') + raise + if sccache_stats: sccache_stats = sccache_stats['stats'] requests = sccache_stats.get('compile_requests', 0) @@ -183,13 +193,13 @@ def get_summary_stats(summary): percent = int(100 * passed / total) if total > 0 else 0 fail_string = f'Pass: {percent:>3}%/{total}' - stats = f'{fail_string:<21}' + stats = f'{fail_string:<14}' if 'job_time' in summary and total > 0 and summary['job_time'] > 0: job_time = summary['job_time'] total_job_duration = format_seconds(job_time) avg_job_duration = format_seconds(job_time / total) - stats += f' | Total Time: {total_job_duration:>7} | Avg Time: {avg_job_duration:>6}' + stats += f' | Total Time: {total_job_duration:>7} | Avg Time: {avg_job_duration:>7}' if 'sccache' in summary: sccache = summary['sccache'] diff --git a/ci/matrix.yaml b/ci/matrix.yaml index 3e1872fb6c0..bb6172ff378 100644 --- a/ci/matrix.yaml +++ b/ci/matrix.yaml @@ -49,6 +49,10 @@ workflows: # - {jobs: ['build'], project['thrust'], std: 17, ctk: *ctk_curr, cxx: [*gcc12, *llvm16]} # override: + # - {jobs: ['test'], project: ['libcudacxx', 'thrust'], std: '17', cxx: [*gcc12, *llvm16]} + # - {jobs: ['build'], project: ['libcudacxx', 'thrust'], std: '17', cxx: *msvc2022} + - {jobs: ['build'], project: ['libcudacxx'], cxx: *msvc2022} + - {jobs: ['infra'], project: 'cccl', ctk: *ctk_11_1, cxx: [*gcc-oldest, *llvm-oldest]} pull_request: # default_projects: nvcc