Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
f9aaaa2
Fix SIGSEGV when v1model version is negative
jhavrane Dec 4, 2025
9de6ed4
Improve v1 model value checking
jhavrane Dec 12, 2025
57fba01
Coding style fixes
jhavrane Dec 12, 2025
2691926
Add back test case for #5333 (#5351)
kfcripps Jul 17, 2025
418f621
Print warnings in a deterministic order (#5352)
kfcripps Jul 17, 2025
8c9b6f8
ensure child of IR::SwitchCase remains a BlockStatement (#5349)
ChrisDodd Jul 23, 2025
f384cf3
Extended Type_InfInt handling in ExpressionEvaluator (#5355)
MichalKekely Jul 30, 2025
4d0f202
Fixed SIGSEGV crash in struct assign (#5356)
MichalKekely Jul 30, 2025
edcd0c8
Add support for operations on value with sizes > 64-bit (#5345)
vbnogueira Aug 1, 2025
aea258e
Make struct used by digest in p4tc packed (#5329)
vbnogueira Aug 2, 2025
34df976
Add Checksum extern support to the TC backend (#5357)
vbnogueira Aug 2, 2025
b6135be
Add Random extern support to the TC backend (#5354)
vbnogueira Aug 4, 2025
9fa308b
Print message when P4TEST_IGNORE_STDERR is used (#5358)
chreekat Aug 11, 2025
d60891b
Extension to strength reduction for issue 5280 (#5281)
ChrisDodd Aug 18, 2025
7f087a0
Bump actions/checkout from 4 to 5 (#5363)
dependabot[bot] Aug 19, 2025
d0cb112
Make building the control-plane (and protobuf) optional. (#5368)
fruffy Aug 26, 2025
b6414ff
[#5350] Replace underscores with hyphens for diagnostic types in the …
kfcripps Aug 26, 2025
74e426f
Bump actions/github-script from 7 to 8 (#5374)
dependabot[bot] Sep 9, 2025
b813379
Bump actions/setup-python from 5 to 6 (#5373)
dependabot[bot] Sep 10, 2025
69008d4
[docs] Added test guide (#5215)
Vineet1101 Sep 12, 2025
922a309
Add 248 negative tests to `p4_16_errors` (#5369)
KunJeong Sep 12, 2025
f7d2c5b
Remove unnecessary table stepper object from pna exr_stepper (#5366)
dparker01 Sep 12, 2025
a297712
Small build cleanups (#5388)
chreekat Sep 20, 2025
4a4d2aa
Remove GetV1ModelVersion from front end (#5390)
fruffy Sep 26, 2025
c684bf4
Support for arrays of extern instances (#5338)
ChrisDodd Sep 30, 2025
a771b93
Fix gtestasm (tests now throw CompilerBug rather than aborting) (#5393)
ChrisDodd Sep 30, 2025
cdf30c5
Extend CopyStructures to optionally copy tuples (#5364)
ChrisDodd Sep 30, 2025
76137eb
Disable ptf-ebpf-kernels-weekly workflow (#5391)
chreekat Oct 2, 2025
f505f36
Bump peter-evans/find-comment from 3 to 4 (#5396)
dependabot[bot] Oct 6, 2025
bad5451
Bump peter-evans/create-or-update-comment from 4 to 5 (#5395)
dependabot[bot] Oct 6, 2025
105f973
Fix simplifySwitch handling of enums (#5365)
ChrisDodd Oct 6, 2025
36bc401
Prevent unintended backtick parsing (#5397)
chreekat Oct 11, 2025
db7a0ab
Increase minimum required BISON version to 3.1 (#5398)
kfcripps Oct 16, 2025
8f05625
Fix EliminateTuples bug with nested struct/tuples (#5362)
ChrisDodd Oct 17, 2025
be444b7
Bump grpcio for Mac (#5404)
chreekat Oct 22, 2025
931f55d
Avoid 'fatal error : Broken pipe' from preprocessor (#5400)
ChrisDodd Oct 23, 2025
8e7f250
JSON error checking when loading (#5401)
ChrisDodd Oct 26, 2025
fedef36
Add redirect_l2 test case (#5406)
vbnogueira Oct 29, 2025
cb1eea3
Add p4tc routing testcases (#5409)
vbnogueira Oct 30, 2025
ab5e39f
Fix/reorganize to/fromJSON code (#5403)
ChrisDodd Nov 6, 2025
65922b6
Automated Release v1.2.5.9 (#5413)
github-actions[bot] Nov 6, 2025
387447a
Fixes for P4-14 Tofino compilation. (#5414)
fruffy Nov 8, 2025
9d46f77
Temporarily disable use of p4lang-bmv2 Debian package until it is wor…
jafingerhut Nov 23, 2025
8c24a1f
fix return types of fromJSON to match NodeFactoryFn (#5420)
ChrisDodd Nov 23, 2025
f7e45cb
Add validation to make sure source info generated from the parser is …
fruffy Nov 23, 2025
00cd489
Bump actions/checkout from 5 to 6 (#5426)
dependabot[bot] Nov 24, 2025
92c771a
Silence 'unused' warnings for stuff in tofino headers (#5427)
ChrisDodd Nov 24, 2025
5087070
Add p4tc IP-in-IP testcases (#5431)
vbnogueira Dec 3, 2025
63b1fff
Automated Release v1.2.5.10 (#5429)
github-actions[bot] Dec 5, 2025
fe82d45
Fix segmentation failure in ConstantTypeSubstitution (#5271)
vlstill Dec 10, 2025
8d89f25
Fix handling of int<0> constants, fix warning category (#5249)
vlstill Dec 10, 2025
b5a6783
Add parser state tracking, testgen option for parser state tracking (…
dparker01 Dec 11, 2025
f0e99b7
Improvements in strength reduction for comparisons (#5434)
ChrisDodd Dec 12, 2025
766740a
Type check that RHS of shift is integral type (#5446)
dmatousek Dec 12, 2025
2303b98
Bump actions/cache from 4 to 5 (#5449)
dependabot[bot] Dec 15, 2025
4763c70
Bump peter-evans/create-pull-request from 7 to 8 (#5448)
dependabot[bot] Dec 15, 2025
6e384ad
Add checks for plus slice values (#5442)
jhavrane Dec 16, 2025
8592af7
Add missing reference file
jhavrane Dec 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Auto-label Issues and PRs
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/ci-auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
if: ${{ github.repository == 'p4lang/p4c' && github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
# Fetch all history for all branches and tags
fetch-depth: 0
Expand All @@ -36,7 +36,10 @@ jobs:
echo "::set-output name=content::$CHANGELOG"

- name: Display changelog
run: echo "${{ steps.changelog.outputs.content }}"
run: |
cat <<'EOF'
${{ steps.changelog.outputs.content }}
EOF

- name: Get version
run: |
Expand All @@ -46,7 +49,7 @@ jobs:
- name: Get commit message
id: message
run: |
COMMIT_MSG=$(cat << EOF
COMMIT_MSG=$(cat << 'EOF'
Release v${{ env.VERSION }}
Signed-off-by: rst0git <9142901+rst0git@users.noreply.github.com>

Expand All @@ -61,7 +64,7 @@ jobs:
- name: Get pull request body message
id: body
run: |
MSG=$(cat << EOF
MSG=$(cat << 'EOF'
Auto-generated pull request for version ${{ env.VERSION }}.

Please use **Squash and merge** to include the changelog in the release message.
Expand All @@ -75,7 +78,7 @@ jobs:
echo "::set-output name=content::$MSG"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
uses: peter-evans/create-pull-request@v8
with:
base: main
add-paths: Version.txt
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci-bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
format_bazel_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- run: tools/format-bazel-files.sh
- name: Check formatting diff
run: |
Expand All @@ -37,12 +37,12 @@ jobs:
needs: format_bazel_files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive

- name: Mount bazel cache
uses: actions/cache/restore@v4
uses: actions/cache/restore@v5
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-bazel-direct-${{ hashFiles('**/*.bazel*', '**/*.bzl') }}
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
run: rm -rf $(bazel info repository_cache)

- name: Save bazel cache
uses: actions/cache/save@v4
uses: actions/cache/save@v5
if: always() && (github.ref_name == 'main' || env.duration > 180)
with:
path: ~/.cache/bazel
Expand All @@ -91,12 +91,12 @@ jobs:
needs: format_bazel_files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive

- name: Mount bazel cache
uses: actions/cache/restore@v4
uses: actions/cache/restore@v5
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-bazel-indirect-${{ hashFiles('**/*.bazel*', '**/*.bzl') }}
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
run: rm -rf $(bazel info repository_cache)

- name: Save bazel cache
uses: actions/cache/save@v4
uses: actions/cache/save@v5
if: always() && (github.ref_name == 'main' || env.duration > 180)
with:
path: ~/.cache/bazel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
if: ${{ github.repository == 'p4lang/p4c' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Determine Docker image tag
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
CMAKE_ONLY: ON
CTEST_PARALLEL_LEVEL: 4
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6

- name: ccache
uses: hendrikmuhs/ccache-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-p4tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
ENABLE_TEST_TOOLS: ON
BUILD_GENERATOR: Ninja
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-ptf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
INSTALL_PTF_EBPF_DEPENDENCIES: ON
BUILD_GENERATOR: Ninja
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-static-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
ENABLE_TEST_TOOLS: ON
BUILD_GENERATOR: Ninja
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-test-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
IMAGE_TYPE: test
BUILD_GENERATOR: Ninja
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 0
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
CMAKE_UNITY_BUILD: ${{ matrix.unity }}
BUILD_GENERATOR: Ninja
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 0
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
ENABLE_P4TEST: OFF
ENABLE_P4C_GRAPHS: OFF
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install git
run: dnf install -y -q git

- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive

Expand Down
73 changes: 15 additions & 58 deletions .github/workflows/ci-test-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,60 +14,13 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
# Build and test p4c on MacOS for M1 Macs.
test-mac-os-m1:
runs-on: macos-14
env:
CTEST_PARALLEL_LEVEL: 4
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: test-${{ runner.os }}
max-size: 1000M

- name: Get brew cache dir
id: brew-cache
run: |
echo "dir=$(brew --prefix)" >> $GITHUB_OUTPUT

- name: Cache Homebrew Packages
id: cache-homebrew-packages
uses: actions/cache@v4
env:
cache-name: homebrew-packages
with:
path: ${{ steps.brew-cache.outputs.dir }}
key: ${{ runner.os }}-m1-${{ hashFiles('tools/install_mac_deps.sh') }}

- name: Install dependencies (MacOS)
run: |
tools/install_mac_deps.sh

- name: Build (MacOS)
run: |
source ~/.bash_profile
./bootstrap.sh -DENABLE_GC=ON -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_UNITY_BUILD=ON -DENABLE_TEST_TOOLS=ON -DENABLE_WERROR=ON --build-generator "Ninja"
cmake --build build -- -j $(nproc)

- name: Run tests (MacOS)
run: |
source ~/.bash_profile
uv run ctest --output-on-failure --schedule-random -E "ubpf|testgen|smith"
working-directory: ./build

# Build and test p4c on MacOS 13 on x86.
# Build and test p4c on latest MacOS
test-mac-os:
runs-on: macos-13
runs-on: macos-latest
env:
CTEST_PARALLEL_LEVEL: 4
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive

Expand All @@ -82,14 +35,18 @@ jobs:
run: |
echo "dir=$(brew --prefix)" >> $GITHUB_OUTPUT

- name: Cache Homebrew Packages
id: cache-homebrew-packages
uses: actions/cache@v4
env:
cache-name: homebrew-packages
with:
path: ${{ steps.brew-cache.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('tools/install_mac_deps.sh') }}
# TODO: remove next line after working again
# temporarily work around https://github.com/actions/runner-images/issues/13341
# by disabling caching for macOS
# - name: Cache Homebrew Packages
# id: cache-homebrew-packages
# uses: actions/cache@v4
# env:
# cache-name: homebrew-packages
# with:
# path: ${{ steps.brew-cache.outputs.dir }}
# key: ${{ runner.os }}-${{ hashFiles('tools/install_mac_deps.sh') }}


- name: Install dependencies (MacOS)
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-ubuntu-24-sanitizer-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
UBSAN_OPTIONS: print_stacktrace=1
ASAN_OPTIONS: print_stacktrace=1:detect_leaks=0
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/ci-ubuntu-p4tc-stf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,18 @@ jobs:
env:
CTEST_PARALLEL_LEVEL: 4
IMAGE_TYPE: test
ENABLE_GTESTS: ${{ matrix.gtest }}
CMAKE_UNITY_BUILD: ${{ matrix.unity }}
BUILD_GENERATOR: Ninja
INSTALL_STF_P4TC_DEPENDENCIES: ON
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 0

- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: test-${{ matrix.unity }}-${{ runner.os }}-gcc
key: test-${{ runner.os }}-gcc
max-size: 1000M

- name: Build (Ubuntu 24.04, GCC)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-validation-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
VALIDATION: ON
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: recursive

Expand Down
Loading
Loading