-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continuing the implementation of initial entries support in p4c #4080
Conversation
These changes update the contents of P4Info and table entries files as generated by p4c, to match what has been agreed upon by the P4 API work group in this pull request p4lang/p4runtime#432
Note: This PR will probably fail CI tests with compile-time errors until after this PR has been merged in: p4lang/p4runtime#432 and then after that, it will likely continue to fail until the control-plane/p4runtime sub-module of p4c is updated to a commit SHA that includes the changes in the PR linked above. |
I believe #4056 may be needed to be able to update P4Runtime since the protos use experimental features. |
@rst0git Several hours ago there was a commit to the repo https://github.com/p4lang/p4runtime, which this PR depends upon. It appears that some of these tests use apt to install p4lang-pi and some other precompiled packages, which may need updating in order for these tests to pass. Do you know if that is true? |
This update is required to update the packages used by the CI tests for p4c. p4lang/p4c#4080 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This update is required to update the packages used by the CI tests for p4c. p4lang/p4c#4080 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This update is required to update the packages used by the CI tests for p4c. p4lang/p4c#4080 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
@rst0git Thank you for creating p4lang/PI#601 and getting it through review and merging. For my own knowledge, how long after that is merged should I wait before triggering CI builds on this PR again, such that it should "see" the new versions? |
@jafingerhut Would you be able to update the P4Runtime commit in diff --git a/CMakeLists.txt b/CMakeLists.txt
index b7bc5620a..c6117c182 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -383,7 +383,7 @@ set(FETCHCONTENT_QUIET OFF)
FetchContent_Declare(
p4runtime
GIT_REPOSITORY https://github.com/p4lang/p4runtime.git
- GIT_TAG d76a3640a223f47a43dc34e5565b72e43796ba57
+ GIT_TAG 1e771c4e05c4e7e250df00212b3ca02ee3202d71
GIT_PROGRESS TRUE
)
FetchContent_MakeAvailable(p4runtime) |
@rst0git There isn't any big urgency, but if you happen to have some time and interest, do you have any knowledge of why so many of the tests would be failing with the changes in this PR? I have rebased it to latest main version as of 2023-Aug-15, plus my few changes. |
@rst0git Sorry for the noise, but I believe I may have discovered the reasons for failing tests myself -- good old fashioned "run all the tests locally on your own system and debug them" approach worked. Sigh. |
Co-authored-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
@smolkaj @chrispsommers This is intended to update open source p4c to generate P4Info files with the recent changes made by this PR on the P4Runtime API spec to support initial entries on tables (the ones declared with The changes are:
|
Nice!! This LGTM. |
Got one approval from a P4 API work group co-chair in a comment, and another approval from p4c developer, so merging. |
These changes update the contents of P4Info and table entries files as generated by p4c, to match what has been agreed upon by the P4 API work group in this pull request
p4lang/p4runtime#432
This PR is intended to make a significant step towards resolving issue #4016 but will not do so completely, as this PR does not address the parts of that issue suggesting the creation of STF or PTF tests that exercise this new feature.