Skip to content

Update p4tc CI tests to run on Ubuntu 22.04#5168

Merged
jafingerhut merged 5 commits into
p4lang:mainfrom
jafingerhut:try-ubuntu-22.04-for-p4tc-tests
Mar 6, 2025
Merged

Update p4tc CI tests to run on Ubuntu 22.04#5168
jafingerhut merged 5 commits into
p4lang:mainfrom
jafingerhut:try-ubuntu-22.04-for-p4tc-tests

Conversation

@jafingerhut

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Andy Fingerhut <andy.fingerhut@gmail.com>
@jafingerhut jafingerhut added the p4tc Topics related to the P4-TC back end. On PRs, also triggers p4tc CI tests to run. label Mar 6, 2025
Signed-off-by: Andy Fingerhut <andy.fingerhut@gmail.com>
Signed-off-by: Andy Fingerhut <andy.fingerhut@gmail.com>
@jafingerhut jafingerhut removed the p4tc Topics related to the P4-TC back end. On PRs, also triggers p4tc CI tests to run. label Mar 6, 2025
@jafingerhut

Copy link
Copy Markdown
Contributor Author

@vbnogueira Please take a look at this PR's changes, too, and see if you approve.

Ubuntu 20.04 will no longer be supported on Github CI runs by April 1. 2025. See #5155 for context. Thus running tests on Ubuntu 22.04 will soon be necessary for the test to be run at all.

@vbnogueira vbnogueira left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vlstill vlstill left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Giving this a green mark even though I am not familiar with p4tc -- given the approval of @vbnogueira and that the CI def file changes make sense :-).

Please just rename the PR before merging.

runs-on: ubuntu-20.04
test-ubuntu-p4tc-stf:
# Only run on pull requests with the "run-p4tc" label.
if: ${{ github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'run-p4tc') }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure an extra label makes sense here. We already have p4tc and the test should be triggered by this label.

I am also planning to add a trigger that the tests are triggered by any change in the p4tc folder.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit 4 changes label triggering runs back to 'p4tc'

Signed-off-by: Andy Fingerhut <andy.fingerhut@gmail.com>
@jafingerhut jafingerhut changed the title Try running p4tc CI tests on Ubuntu 22.04 Update p4tc CI tests to run on Ubuntu 22.04 Mar 6, 2025
@jafingerhut jafingerhut added p4tc Topics related to the P4-TC back end. On PRs, also triggers p4tc CI tests to run. infrastructure Topics related to code style and build and test infrastructure. and removed run-p4tc labels Mar 6, 2025

@fruffy fruffy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, a rebase should trigger the CI run.

@jafingerhut

Copy link
Copy Markdown
Contributor Author

All tests pass after rebasing. Several approvals, so merging.

@jafingerhut jafingerhut added this pull request to the merge queue Mar 6, 2025
Merged via the queue into p4lang:main with commit b9f23a5 Mar 6, 2025
@jafingerhut jafingerhut deleted the try-ubuntu-22.04-for-p4tc-tests branch March 6, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Topics related to code style and build and test infrastructure. p4tc Topics related to the P4-TC back end. On PRs, also triggers p4tc CI tests to run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants