Skip to content
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

Don't apply defaultArguments in table action lists #4434

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

ChrisDodd
Copy link
Contributor

When actions have default args, they should not be applied in the action list of a table, as the control plane may supply non-default values for these args.

@fruffy
Copy link
Collaborator

fruffy commented Feb 19, 2024

Could you add a test as an example of where this can happen?

@ChrisDodd ChrisDodd force-pushed the cdodd-defaultargs branch 2 times, most recently from 95f81da to 5ed7ca8 Compare February 19, 2024 06:50
@ChrisDodd
Copy link
Contributor Author

I added a testcase that triggers the BUG_CHECK I was seeing before with the previous code, but doesn't cover all the cases that should work with default args (because they still don't work).

@ChrisDodd ChrisDodd merged commit aea22be into p4lang:main Feb 19, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants