Skip to content

Commit bfd3936

Browse files
authored
Merge branch 'master' into vesting-genesis-fix
2 parents 74e7e4f + 9c2323b commit bfd3936

224 files changed

Lines changed: 14455 additions & 6339 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/review-trigger.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,29 @@ jobs:
3838
github.event.pull_request.author_association != 'CONTRIBUTOR' &&
3939
github.event.pull_request.author_association != 'MEMBER'
4040
run: |
41-
echo "User's association is ${{ github.event.pull_request.author_association }}"
4241
# We get the list of reviewers who approved the PR
4342
REVIEWERS=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews \
4443
--jq '{reviewers: [.[] | select(.state == "APPROVED") | .user.login]}')
4544
46-
# We request them to review again
47-
echo $REVIEWERS | gh api --method POST repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers --input -
45+
# We request them to review again.
46+
echo $REVIEWERS | gh api --silent --method POST repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers --input -
4847
49-
echo "::error::Project needs to be reviewed again"
48+
APPROVERS=$(echo "$REVIEWERS" | jq -r '.reviewers | map("@" + .) | join(", ")')
49+
50+
tee -a "$GITHUB_STEP_SUMMARY" <<EOF
51+
## Review required
52+
53+
**What failed:** @${{ github.event.pull_request.user.login }} (association \`${{ github.event.pull_request.author_association }}\`)
54+
pushed \`${{ github.event.pull_request.head.sha }}\` after this pull request was already approved.
55+
An approval only covers the code it was given for, so a push from an author outside the
56+
organisation invalidates it.
57+
58+
**What needs to be done:** review has been re-requested from ${APPROVERS}.
59+
Once a new approval lands, this workflow re-runs and the check passes.
60+
The author does not need to change anything.
61+
EOF
62+
63+
echo "::error title=Review required::Author pushed new commits after approval, a new approval from ${APPROVERS} is needed"
5064
exit 1
5165
env:
5266
GH_TOKEN: ${{ github.token }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Vertex AI Review
2+
3+
# Comment "/aireview" on a pull request to get a review from Vertex AI (Gemini).
4+
# The reviewer reads the diff over the GitHub API and never checks out or runs
5+
# code from the pull request, which is what makes it safe to hold credentials
6+
# while reviewing a fork.
7+
#
8+
# Only a MEMBER, an OWNER or a COLLABORATOR can trigger it.
9+
10+
on:
11+
issue_comment:
12+
types: [created]
13+
14+
permissions: {}
15+
16+
concurrency:
17+
group: vertex-ai-review-${{ github.event.issue.number }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
review:
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
id-token: write
26+
uses: paritytech/ci-actions-public/.github/workflows/vertex-ai-review.yaml@main # zizmor: ignore[unpinned-uses]
27+
with:
28+
vertex_project: ${{ vars.VERTEX_PROJECT }}
29+
comment_trigger: "/aireview"
30+
secrets:
31+
GCP_SA_VERTEX_AI_REVIEW: ${{ secrets.GCP_SA_VERTEX_AI_REVIEW }}
32+
GCP_WIP_VERTEX_AI_REVIEW: ${{ secrets.GCP_WIP_VERTEX_AI_REVIEW }}

.github/zombienet-tests/zombienet_polkadot_tests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,20 @@
234234
use-zombienet-sdk: true
235235
cumulus-image: "test-parachain"
236236

237-
- job-name: "zombienet-polkadot-scheduling-v3-dynamic-enablement"
238-
test-filter: "functional::v3_dynamic_enablement::v3_dynamic_enablement_test"
237+
- job-name: "zombienet-polkadot-scheduling-v3-dynamic-enablement-para-rollback"
238+
test-filter: "functional::v3_dynamic_enablement::v3_dynamic_enablement_test::case_1_para_rollback"
239+
runner-type: "large"
240+
use-zombienet-sdk: true
241+
cumulus-image: "test-parachain"
242+
243+
- job-name: "zombienet-polkadot-scheduling-v3-dynamic-enablement-para-rollback-rpo-2"
244+
test-filter: "functional::v3_dynamic_enablement::v3_dynamic_enablement_test::case_2_para_rollback_rpo_2"
245+
runner-type: "large"
246+
use-zombienet-sdk: true
247+
cumulus-image: "test-parachain"
248+
249+
- job-name: "zombienet-polkadot-v4-collation-protocol-version-negotiation"
250+
test-filter: "functional::collation_protocol_version_negotiation::collation_protocol_version_negotiation"
239251
runner-type: "default"
240252
use-zombienet-sdk: true
241253
cumulus-image: "test-parachain"

0 commit comments

Comments
 (0)