Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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
6 changes: 6 additions & 0 deletions .github/workflows/ci3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ jobs:
EXTERNAL_ETHEREUM_CONSENSUS_HOST: "https://beacon.${{ secrets.GCP_SEPOLIA_URL }}"
EXTERNAL_ETHEREUM_CONSENSUS_HOST_API_KEY: ${{ secrets.GCP_SEPOLIA_API_KEY }}
EXTERNAL_ETHEREUM_CONSENSUS_HOST_API_KEY_HEADER: "X-goog-api-key"
TARGET_BRANCH: >-
${{
github.event_name == 'pull_request' && github.event.pull_request.base.ref
|| github.event_name == 'merge_group' && github.event.merge_group.pull_requests[0].pull_request.base_ref
|| github.ref_name
}}
run: |
if [ "${{ github.event_name }}" == "merge_group" ] || [ "${CI_FULL:-0}" -eq 1 ]; then
exec ./ci.sh merge-queue
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: release-please

# Trigger on merges to 'master' branch
# Trigger on merges to 'master' branch and 'next' branch
on:
push:
branches:
- master
- next

permissions:
contents: write
Expand Down
4 changes: 4 additions & 0 deletions .test_patterns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ tests:
error_regex: "FormattedViemError: Nonce provided for the transaction is lower than the current nonce of the account."
owners:
- *sean
- regex: "src/e2e_p2p/reqresp"
error_regex: 'CodeError: writable end state is "writing" not "ready"'
owners:
- *sean
- regex: "src/e2e_p2p"
error_regex: "TimeoutError: Timeout awaiting blocks mined"
owners:
Expand Down
3 changes: 2 additions & 1 deletion ci3/bootstrap_ec2
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ container_script=$(cat <<EOF
while true; do redis_cli SETEX hb-\$ci_log_id 60 1 &>/dev/null || true; sleep 30; done &

function run {
echo "env: REF_NAME=\$REF_NAME COMMIT_HASH=\$COMMIT_HASH CURRENT_VERSION=\$CURRENT_VERSION"
echo "env: REF_NAME=\$REF_NAME COMMIT_HASH=\$COMMIT_HASH CURRENT_VERSION=\$CURRENT_VERSION TARGET_BRANCH=\$TARGET_BRANCH"
if semver check "\$REF_NAME"; then
echo "Performing a release because \$REF_NAME is a semver."
fi
Expand Down Expand Up @@ -228,6 +228,7 @@ function run {
-e RUN_ID=${RUN_ID:-} \
-e JOB_ID=${JOB_ID:-} \
-e REF_NAME=${REF_NAME:-} \
-e TARGET_BRANCH=${TARGET_BRANCH:-} \
-e PARENT_LOG_URL=${PARENT_LOG_URL:-} \
-e NO_CACHE=${NO_CACHE:-} \
-e CI_REDIS='ci-redis-tiered.lzka0i.ng.0001.use2.cache.amazonaws.com' \
Expand Down
5 changes: 4 additions & 1 deletion l1-contracts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ function build {
function test_cmds {
echo "$hash cd l1-contracts && solhint --config ./.solhint.json \"src/**/*.sol\""
echo "$hash cd l1-contracts && forge fmt --check"
echo "$hash cd l1-contracts && forge test --no-match-contract UniswapPortalTest"
echo "$hash cd l1-contracts && forge test"
if [ "${TARGET_BRANCH:-}" == "master" ]; then
echo "$hash cd l1-contracts && forge test --no-match-contract UniswapPortalTest --match-contract ScreamAndShoutTest"
fi
}

function test {
Expand Down
2 changes: 2 additions & 0 deletions l1-contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ fs_permissions = [
{access = "read", path = "./test/fixtures/fee_data_points.json"},
]

no_match_contract="(ScreamAndShoutTest|UniswapPortalTest)"

[fmt]
line_length = 100
tab_width = 2
Expand Down
55 changes: 55 additions & 0 deletions l1-contracts/test/shouting.t.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.27;

import {Test} from "forge-std/Test.sol";
import {Rollup} from "@aztec/core/Rollup.sol";
import {Registry} from "@aztec/governance/Registry.sol";
import {Governance} from "@aztec/governance/Governance.sol";
import {HonkVerifier} from "../generated/HonkVerifier.sol";

/**
* @notice This test is used to ensure that changes to L1 contracts don't go unnoticed.
* While still allowing the addition of more tests etc without having to update it.
* The test is fairly simple, check if the creation code has changed for the important
* contracts. If it has, the test will fail, so it needs to be updated.
* This should not be needed for master, so if you have a diff, it probably have to go to NEXT.
*/
contract ScreamAndShoutTest is Test {
string internal constant ERR_STRING = "This belongs in NEXT!";

function test_GovernanceCreationCode() public pure {
bytes memory creationCode = type(Governance).creationCode;
bytes32 codeHash = keccak256(creationCode);

assertEq(
codeHash, 0x8660a25b0d480424b950324ef5d078cfb12a06d5c807ab09ade301968ac20ae1, ERR_STRING
);
}

function test_HonkVerifierCreationCode() public pure {
bytes memory creationCode = type(HonkVerifier).creationCode;
bytes32 codeHash = keccak256(creationCode);

assertEq(
codeHash, 0x892b4a5c70e2e665b147db8ae02a0410ae400adefd02d85feb56847593d4b9dd, ERR_STRING
);
}

function test_RegistryCreationCode() public pure {
bytes memory creationCode = type(Registry).creationCode;
bytes32 codeHash = keccak256(creationCode);

assertEq(
codeHash, 0x1c9e54944cd8c92ee57305f1fba26284638268a934f9fab38b7c6a4facb92ee5, ERR_STRING
);
}

function test_RollupCreationCode() public pure {
bytes memory creationCode = type(Rollup).creationCode;
bytes32 codeHash = keccak256(creationCode);

assertEq(
codeHash, 0xddd8431ed52d33e28fb5072e1dd57fbecb5fd919da403bc20cdad17ca2113726, ERR_STRING
);
}
}
53 changes: 38 additions & 15 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,42 @@
{
"release-type": "simple",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"prerelease": true,
"group-pull-request-title-pattern": "chore(master): Release ${version}",
"pull-request-header": ":robot: I have created a new Aztec Packages release",
"versioning": "default",
"include-component-in-tag": false,
"changelog-sections": [
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
{ "type": "test", "section": "Miscellaneous", "hidden": false },
{ "type": "refactor", "section": "Miscellaneous", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false }
"branches": [
{
"branch": "master",
"release-type": "simple",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"group-pull-request-title-pattern": "chore(master): Release ${version}",
"pull-request-header": ":robot: I have created a new Aztec Packages release",
"versioning": "default",
"include-component-in-tag": false,
"changelog-sections": [
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
{ "type": "test", "section": "Miscellaneous", "hidden": false },
{ "type": "refactor", "section": "Miscellaneous", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false }
]
},
{
"branch": "next",
"release-type": "simple",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"prerelease": true,
"group-pull-request-title-pattern": "chore(next): Release ${version}",
"pull-request-header": ":robot: I have created a new Aztec Packages next release",
"versioning": "default",
"include-component-in-tag": false,
"changelog-sections": [
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
{ "type": "test", "section": "Miscellaneous", "hidden": false },
{ "type": "refactor", "section": "Miscellaneous", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false }
]
}
],
"packages": {
".": {
Expand Down