Context |
Check |
Description |
ltpci/debian_stable_s390x-linux-gnu-gcc_s390x |
success
|
success
|
ltpci/debian_stable_powerpc64le-linux-gnu-gcc_ppc64el |
success
|
success
|
ltpci/debian_stable_aarch64-linux-gnu-gcc_arm64 |
success
|
success
|
ltpci/quay-io-centos-centos_stream9_gcc |
success
|
success
|
ltpci/debian_stable_gcc |
success
|
success
|
ltpci/debian_stable_gcc |
success
|
success
|
ltpci/ubuntu_jammy_gcc |
success
|
success
|
ltpci/ubuntu_bionic_gcc |
success
|
success
|
ltpci/fedora_latest_clang |
success
|
success
|
ltpci/alpine_latest_gcc |
success
|
success
|
ltpci/debian_oldstable_clang |
success
|
success
|
ltpci/opensuse-archive_42-2_gcc |
success
|
success
|
ltpci/debian_testing_clang |
success
|
success
|
ltpci/debian_testing_gcc |
success
|
success
|
ltpci/opensuse-leap_latest_gcc |
success
|
success
|
ltpci/debian_oldstable_gcc |
success
|
success
|
@@ -43,6 +43,11 @@ jobs:
return;
}
+ const workflows = [
+ 'ci-docker-build.yml',
+ 'ci-sphinx-doc.yml'
+ ];
+
for (const data of lines) {
const [series_id, series_mbox] = data.split('|');
if (series_id.length === 0 || series_mbox.length === 0) {
@@ -50,16 +55,18 @@ jobs:
continue;
}
- const response = await github.rest.actions.createWorkflowDispatch({
- owner: context.repo.owner,
- repo: context.repo.repo,
- ref: context.ref,
- workflow_id: 'ci-docker-build.yml',
- inputs: {
- SERIES_ID: series_id,
- SERIES_MBOX: series_mbox,
- }
- });
+ for (const workflow in workflows) {
+ const response = await github.rest.actions.createWorkflowDispatch({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ ref: context.ref,
+ workflow_id: workflow,
+ inputs: {
+ SERIES_ID: series_id,
+ SERIES_MBOX: series_mbox,
+ }
+ });
- console.log(response);
+ console.log(response);
+ }
}
@@ -8,6 +8,16 @@ on:
paths: ['doc/**']
pull_request:
paths: ['doc/**']
+ workflow_dispatch:
+ inputs:
+ SERIES_ID:
+ description: LTP patch series ID
+ required: false
+ default: ''
+ SERIES_MBOX:
+ description: LTP patch series URL
+ required: false
+ default: ''
permissions: {}
@@ -25,6 +35,20 @@ jobs:
sudo apt update
sudo apt install autoconf make python3-virtualenv
+ - name: Apply Patchwork series
+ if: inputs.SERIES_ID != '' && inputs.SERIES_MBOX != ''
+ env:
+ PATCHWORK_TOKEN: ${{ secrets.PATCHWORK_TOKEN }}
+ run: |
+ git config --global user.name 'GitHub CI'
+ git config --global user.email 'github@example.com'
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
+
+ git checkout -b review_patch_series_"${{ inputs.SERIES_ID }}"
+ curl -k "${{ inputs.SERIES_MBOX }}" | git am
+
+ ./ci/tools/patchwork.sh state "${{ inputs.SERIES_ID }}" "needs-review-ack"
+
- name: Run configure
run: |
cd "$GITHUB_WORKSPACE/ltp/"
@@ -42,3 +66,14 @@ jobs:
cd "$GITHUB_WORKSPACE/ltp/doc/"
. .venv/bin/activate
make
+
+ - name: Send results to Patchwork
+ if: always() && inputs.SERIES_ID != '' && inputs.SERIES_MBOX != ''
+ env:
+ PATCHWORK_TOKEN: ${{ secrets.PATCHWORK_TOKEN }}
+ run: |
+ ./ci/tools/patchwork.sh check \
+ "${{ inputs.SERIES_ID }}" \
+ "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
+ "${{ matrix.container }}" \
+ "${{ job.status }}"