Skip to content
Merged
Show file tree
Hide file tree
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
39 changes: 21 additions & 18 deletions .github/workflows/build-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,6 @@ jobs:
- true
exclude:
- vm: ${{ inputs.skip-openj9-tests && 'openj9' || '' }}
- test-java-version: 25 # renovate: datasource=java-version
vm: openj9
fail-fast: false
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand Down Expand Up @@ -336,22 +334,27 @@ jobs:
with:
result-encoding: string
script: |
const matrix = JSON.parse(process.env.matrix);
const job_name = `common / test${ matrix['test-partition'] } (${ matrix['test-java-version'] }, ${ matrix.vm }, indy ${ matrix['test-indy'] })`;

const workflow_jobs_nested = await github.paginate(
github.rest.actions.listJobsForWorkflowRun,
{
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId,
per_page: 100
},
(response) => {
return response.data;
},
);
return workflow_jobs_nested.flat().find((job) => job.name === job_name).html_url;
try {
const matrix = JSON.parse(process.env.matrix);
const job_name = `common / test${ matrix['test-partition'] } (${ matrix['test-java-version'] }, ${ matrix.vm }, indy ${ matrix['test-indy'] })`;
const workflow_jobs_nested = await github.paginate(
github.rest.actions.listJobsForWorkflowRun,
{
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId,
per_page: 100
},
(response) => {
return response.data;
},
);
const job = workflow_jobs_nested.flat().find((job) => job.name === job_name);
return job ? job.html_url : '';
} catch (e) {
core.warning(`Failed to get current job url: ${e}`);
return '';
}

- name: Flaky test report
if: ${{ !cancelled() }}
Expand Down
29 changes: 20 additions & 9 deletions .github/workflows/reusable-test-latest-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,26 @@ jobs:
with:
result-encoding: string
script: |
const { data: workflow_run } = await github.rest.actions.listJobsForWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId,
per_page: 100
});
const matrix = JSON.parse(process.env.matrix);
const job_name = `test-latest-deps / testLatestDeps${ matrix['test-partition'] }`;
return workflow_run.jobs.find((job) => job.name === job_name).html_url;
try {
const job_name = `test-latest-deps / testLatestDeps${ matrix['test-partition'] }`;
const workflow_jobs_nested = await github.paginate(
github.rest.actions.listJobsForWorkflowRun,
{
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId,
per_page: 100
},
(response) => {
return response.data;
},
);
const job = workflow_jobs_nested.flat().find((job) => job.name === job_name);
return job ? job.html_url : '';
} catch (e) {
core.warning(`Failed to get current job url: ${e}`);
return '';
}

- name: Flaky test report
if: ${{ !cancelled() }}
Expand Down
Loading