Skip to content

Commit 8e78100

Browse files
committed
Merge branch 'master' into sn-7688
2 parents b557387 + 5390b77 commit 8e78100

43 files changed

Lines changed: 725 additions & 272 deletions

Some content is hidden

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

.github/workflows/checks.yml

Lines changed: 69 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
branches:
1010
- master
1111
pull_request:
12+
types: [opened, edited, reopened, synchronize]
1213
branches:
1314
- master
1415

@@ -17,13 +18,13 @@ jobs:
1718
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
1819
steps:
1920
- name: Checkout repository
20-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2122
- name: Set up Python
22-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
23+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
2324
with:
2425
python-version-file: "pyproject.toml"
2526
- name: Install uv ${{ vars.UV_VERSION }}
26-
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
27+
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
2728
with:
2829
enable-cache: true
2930
version: ${{ vars.UV_VERSION }}
@@ -36,7 +37,7 @@ jobs:
3637
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
3738
steps:
3839
- name: Checkout repository
39-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
40+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4041
- name: Check for trailing whitespace
4142
run: |
4243
if git grep -n '[[:blank:]]$'; then
@@ -48,9 +49,9 @@ jobs:
4849
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
4950
steps:
5051
- name: Checkout repository
51-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
52+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5253
- name: Set up Python
53-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
54+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
5455
with:
5556
python-version-file: "pyproject.toml"
5657
- name: Check fork comments
@@ -60,13 +61,13 @@ jobs:
6061
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
6162
steps:
6263
- name: Checkout repository
63-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
64+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6465
- name: Set up Python
65-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
66+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
6667
with:
6768
python-version-file: "pyproject.toml"
6869
- name: Install uv ${{ vars.UV_VERSION }}
69-
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
70+
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
7071
with:
7172
enable-cache: true
7273
version: ${{ vars.UV_VERSION }}
@@ -82,8 +83,63 @@ jobs:
8283
name: test-results-framework-${{ github.run_number }}
8384
path: ./tests/core/pyspec/test-results-framework-${{ github.run_number }}
8485

86+
title:
87+
if: github.event_name == 'pull_request'
88+
runs-on: [self-hosted-ghr-custom, size-s-x64, profile-consensusSpecs]
89+
steps:
90+
- name: Check PR title
91+
env:
92+
PR_TITLE: ${{ github.event.pull_request.title }}
93+
run: |
94+
95+
echo "Checking PR title: $PR_TITLE"
96+
97+
# Check length (must be <= 68 characters)
98+
if [ ${#PR_TITLE} -gt 68 ]; then
99+
echo "PR title (${#PR_TITLE} characters) must be <= 68 characters"
100+
exit 1
101+
fi
102+
103+
# Check for leading or trailing whitespace
104+
if [[ "$PR_TITLE" =~ ^[[:space:]] ]] || [[ "$PR_TITLE" =~ [[:space:]]$ ]]; then
105+
echo "PR title must not have leading or trailing whitespace"
106+
exit 1
107+
fi
108+
109+
# Check for double spaces
110+
if [[ "$PR_TITLE" =~ [[:space:]]{2,} ]]; then
111+
echo "PR title must not contain double spaces"
112+
exit 1
113+
fi
114+
115+
# Check if starts with capital letter
116+
if ! [[ "$PR_TITLE" =~ ^[A-Z] ]]; then
117+
echo "PR title must start with a capital letter"
118+
exit 1
119+
fi
120+
121+
# Check if ends with punctuation
122+
if [[ "$PR_TITLE" =~ [.!?,\;]$ ]]; then
123+
echo "PR title must not end with punctuation"
124+
exit 1
125+
fi
126+
127+
# Check for correct tense (imperative mood)
128+
first_word=$(echo "$PR_TITLE" | awk '{print $1}')
129+
if [[ ! "$first_word" =~ ^(Embed|Shed)$ ]]; then
130+
if [[ "$first_word" =~ [^e]ed$ ]] || \
131+
[[ "$first_word" =~ ies$ ]] || \
132+
[[ "$first_word" =~ [^s]es$ ]] || \
133+
[[ "$first_word" =~ [^s]s$ ]]; then
134+
echo "PR title must use imperative mood"
135+
exit 1
136+
fi
137+
fi
138+
139+
echo "PR title is valid"
140+
85141
tests:
86-
needs: [lint, whitespace, comments, framework]
142+
needs: [lint, whitespace, comments, framework, title]
87143
runs-on: [self-hosted-ghr-custom, size-xl-x64, profile-consensusSpecs]
88144
strategy:
89145
matrix:
@@ -100,13 +156,13 @@ jobs:
100156
- eip7928
101157
steps:
102158
- name: Checkout repository
103-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
159+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
104160
- name: Set up Python
105-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
161+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
106162
with:
107163
python-version-file: "pyproject.toml"
108164
- name: Install uv ${{ vars.UV_VERSION }}
109-
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
165+
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
110166
with:
111167
enable-cache: true
112168
version: ${{ vars.UV_VERSION }}

.github/workflows/nightly-reftests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ jobs:
2626
runs-on: [self-hosted-ghr-custom, size-xl-x64, profile-consensusSpecs]
2727
steps:
2828
- name: Checkout repository
29-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3030
with:
3131
repository: ${{ inputs.repo }}
3232
path: "consensus-specs"
3333
ref: ${{ inputs.ref }}
3434
- name: Set up Python
35-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
35+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
3636
with:
3737
python-version-file: "consensus-specs/pyproject.toml"
3838
- name: Install uv ${{ vars.UV_VERSION }}
39-
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
39+
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
4040
with:
4141
enable-cache: true
4242
version: ${{ vars.UV_VERSION }}

.github/workflows/nightly-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ jobs:
3636
- eip7928
3737
steps:
3838
- name: Checkout repository
39-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
39+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4040
- name: Set up Python
41-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
41+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
4242
with:
4343
python-version-file: "pyproject.toml"
4444
- name: Install uv ${{ vars.UV_VERSION }}
45-
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
45+
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
4646
with:
4747
enable-cache: true
4848
version: ${{ vars.UV_VERSION }}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ jobs:
1717
steps:
1818
# Clone specs
1919
- name: Checkout repository
20-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2121
with:
2222
path: "consensus-specs"
2323

2424
# Setup python
2525
- name: Set up Python
26-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
26+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
2727
with:
2828
python-version-file: "consensus-specs/pyproject.toml"
2929

3030
- name: Install uv ${{ vars.UV_VERSION }}
31-
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
31+
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
3232
with:
3333
enable-cache: true
3434
version: ${{ vars.UV_VERSION }}
@@ -89,7 +89,7 @@ jobs:
8989

9090
# Upload spec test tarballs to the specs release
9191
- name: Upload spec test tarballs
92-
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
92+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
9393
with:
9494
tag_name: ${{ github.ref_name }}
9595
files: |

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
issues: write
1414
pull-requests: write
1515
steps:
16-
- uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
16+
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
1717
with:
1818
days-before-stale: 365
1919
days-before-close: 30

.github/workflows/website.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1717

1818
- name: Set up Python
19-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
19+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
2020
with:
2121
python-version-file: "pyproject.toml"
2222

2323
- name: Install uv ${{ vars.UV_VERSION }}
24-
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
24+
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
2525
with:
2626
enable-cache: true
2727
version: ${{ vars.UV_VERSION }}

specs/_features/eip6800/fork.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Warning: this configuration is not definitive.
3131

3232
The fork is triggered at epoch `EIP6800_FORK_EPOCH`.
3333

34-
Note that for the pure eip6800 networks, we don't apply `upgrade_to_eip6800`
35-
since it starts with the eip6800 version logic.
34+
*Note*: For the pure eip6800 networks, the `upgrade_to_eip6800` function is
35+
applied to transition the genesis state to this fork.
3636

3737
### Upgrading the state
3838

specs/_features/eip8025/beacon-chain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ validation of execution payloads through cryptographic proofs.
5050

5151
| Name | Value |
5252
| ------------------------ | -------------------------- |
53-
| `DOMAIN_EXECUTION_PROOF` | `DomainType('0x0B000000')` |
53+
| `DOMAIN_EXECUTION_PROOF` | `DomainType('0x0D000000')` |
5454

5555
## Configuration
5656

specs/altair/fork.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ the Altair hard fork, introducing light client support and other improvements.
2828

2929
The fork is triggered at epoch `ALTAIR_FORK_EPOCH`.
3030

31-
Note that for the pure Altair networks, we don't apply `upgrade_to_altair` since
32-
it starts with Altair version logic.
31+
*Note*: For the pure Altair networks, the `upgrade_to_altair` function is
32+
applied to transition the genesis state to this fork.
3333

3434
### Upgrading the state
3535

specs/bellatrix/fork.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ finality, deposits, active validator count, etc. may be part of the decision
3030
process to trigger the fork. For now we assume the condition will be triggered
3131
at epoch `BELLATRIX_FORK_EPOCH`.
3232

33-
Note that for the pure Bellatrix networks, we don't apply `upgrade_to_bellatrix`
34-
since it starts with Bellatrix version logic.
33+
*Note*: For the pure Bellatrix networks, the `upgrade_to_bellatrix` function is
34+
applied to transition the genesis state to this fork.
3535

3636
### Upgrading the state
3737

0 commit comments

Comments
 (0)