Skip to content

air: do not hard-code PW project link name#73

Closed
matttbe wants to merge 1 commit intolinux-netdev:mainfrom
matttbe:air-pw-project-name
Closed

air: do not hard-code PW project link name#73
matttbe wants to merge 1 commit intolinux-netdev:mainfrom
matttbe:air-pw-project-name

Conversation

@matttbe
Copy link
Member

@matttbe matttbe commented Mar 5, 2026

Instances using pw_air_poller.py are not tracking 'Netdev + BPF' PW project like air-submit.py does (if I understood correctly). It is then required to save the project link name in the DB to be able to set links to the right PW project in the UI side.

To be able to achieve that, the Patchwork class needs to remember the project link name that is present in the project info from PW, based on the project full name or ID given in the config. Then, this link name can be attached to the submission, and used in the UI if available.

This should then fix the PW URLs on the reports linked to other PW instances like the MPTCP one, e.g. here.

Warning

I was not able to test this, and I don't have access to the config files, so I hope the modifications are correct :)

@matttbe matttbe requested a review from kuba-moo March 5, 2026 12:26
Instances of pw_air_poller.py are not tracking 'Netdev + BPF' PW project
like air-submit.py does. It is then required to save the project link
name in the DB to be able to set links to the right PW project in the
UI side.

To be able to achieve that, the Patchwork class needs to remember the
project link name that is present in the project info from PW, based on
the project full name or ID given in the config. Then, this link name
can be attached to the submission, and used in the UI if available.

This should then fix the PW URLs on the reports linked to other PW
instances like the MPTCP one.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
@matttbe matttbe force-pushed the air-pw-project-name branch from 54f70a4 to 5b23960 Compare March 5, 2026 12:29
@kuba-moo
Copy link
Contributor

kuba-moo commented Mar 5, 2026

Just the links in the UI are broken right? The patchwork links and other things work? Let me fix this, the code base for air hasn't really been updated here, I have it heavily hacked on a local branch :S

@matttbe
Copy link
Member Author

matttbe commented Mar 5, 2026

Just the links in the UI are broken right?

From what I saw, yes.

The patchwork links and other things work?

Yes, for example this patch has the right link to the AI review page, but not the opposite.

Same from: NIPA AIR main page.

Let me fix this, the code base for air hasn't really been updated here, I have it heavily hacked on a local branch :S

Arf, but understandable :)

@kuba-moo
Copy link
Contributor

kuba-moo commented Mar 6, 2026

Took me a couple of attempts but it should be fixed now :)

@kuba-moo kuba-moo closed this Mar 6, 2026
@matttbe
Copy link
Member Author

matttbe commented Mar 9, 2026

Thank you, I confirm it is fixed!

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