-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dashboard/dashapi: run syz-ci without a dashboard #5320
base: master
Are you sure you want to change the base?
Conversation
I think it would be better to patch it it in the |
Thanks for the review - I'll get back to this PR soon. Before I make changes, I just wanted to explain my reasoning and double-check: based on https://go.dev/tour/methods/12, it sounds like interface methods with a pointer receiver often implement their own handling for the case of a nil receiver. I will go with whatever you prefer, though. |
We already divert the logic in case of Lines 535 to 539 in 5643e0e
Lines 639 to 646 in 5643e0e
Over time we probably just broke it since we don't use this mode anywhere and there are almost no
|
Just a note on this -- it was originally surprising to me that these |
syz-ci calls several Dashboard methods, and the case of a nil Dashboard pointer receiver was not handled. This change allows syz-ci to operate with a nil dashboard.
Indeed! I think the bug was introduced recently with the |
Hi! Hoping I can catch you today for a question: Would you like Line 94 in 96eb609
Dashapi implementation and instantiate that if the fields are missing)?
It is nice to be able to start syz-ci (for testing / during development) without deploying a separate dashboard app, so I'd vote to make that possible somehow. |
I think we should repair the non-dashboard mode and let those fields stay optional. How exactly -- it depends on:
If the approaches are equivalent on both these factors, I don't have a strong preference. |
Thank you! That makes sense. I'll spend some time reworking this today and upload a new version. |
syz-ci calls several
Dashboard
methods, and the case of a nilDashboard
pointer receiver was not handled. This change allows syz-ci to operate with a nil dashboard. (In terms of the syzbot setup docs, we wanted to deploy a test instance of syz-ci without deploying a dashboard.)