Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/scripts/extract_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"ECLIPSE": "https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.26-202211231800/eclipse-SDK-4.26-linux-gtk-x86_64.tar.gz"
}

# Gitlab Runners OSS
# Github Runners OSS
OSS = {
"macos-latest": ["darwin", "aarch64"],
"ubuntu-latest": ["linux", "amd64"],
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/ci-post-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Post Merge Actions
on:
pull_request:
types: [closed]

jobs:
check-ci-and-notify:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v8
with:
script: |
const GRAALVMBOT_LOGIN = "graalvmbot";
const pr = context.payload.pull_request;
if (!pr || !pr.number || pr.state !== "closed") return;

const author = pr.user;
const assignees = pr.assignees || [];
if (!author || author.login !== GRAALVMBOT_LOGIN) return;
if (assignees.length !== 1) return;

const sha = pr.head.sha;

const runsResp = await github.rest.actions.listWorkflowRunsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
head_sha: sha,
event: "pull_request",
per_page: 10
});

const failedRun = runsResp.data.workflow_runs.find(run =>
run.head_sha === sha &&
run.status === "completed" &&
run.conclusion !== "success"
);

if (!failedRun) {
console.log("No failed CI workflow found for the PR.");
return;
}

await github.rest.issues.createComment({
issue_number: pr.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `@${assignees[0].login} - One or more CI jobs failed - [View details](${failedRun.html_url})`
});
console.log("CI failed, assignee notified.")
4 changes: 2 additions & 2 deletions .github/workflows/ci-unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
artifacts_retention_days: 0

run-tests:
if: github.event.pull_request.draft == false && success()
if: success()
needs: build-standalone-artifacts
uses: ./.github/workflows/ci-matrix-gen.yml
with:
jobs_to_run: ^(?!python-svm-build|style).*-gate.*$
jobs_to_run: ^(?!python-svm-build|style).*-gate.*$
Loading