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

New Sync View #6813

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

New Sync View #6813

wants to merge 17 commits into from

Conversation

LeFrosch
Copy link
Collaborator

@LeFrosch LeFrosch commented Sep 30, 2024

Adds the option to use the platform sync view instead of the bazel custom one. Errors are also collected using BEP in the new view to improve the quality of reported issues.

Registry key: bazel.new.sync.view

Uses the platform sync view to display progress. However, progress no longer follows a tree structure.
Screenshot from 2024-10-02 10-54-03

The platform sync view offers sufficient space for BEP's detailed error messages.
Screenshot from 2024-10-02 10-54-16

@LeFrosch LeFrosch force-pushed the updated-sync-view branch 3 times, most recently from 7732e35 to 2072ae8 Compare October 2, 2024 08:59
@LeFrosch
Copy link
Collaborator Author

LeFrosch commented Oct 2, 2024

Rebased master

@LeFrosch LeFrosch force-pushed the updated-sync-view branch 3 times, most recently from 2d1a106 to 1717140 Compare October 7, 2024 13:37
@LeFrosch LeFrosch marked this pull request as ready for review October 7, 2024 14:00
@github-actions github-actions bot added the product: CLion CLion plugin label Oct 7, 2024
@github-actions github-actions bot added product: IntelliJ IntelliJ plugin product: GoLand GoLand plugin awaiting-review Awaiting review from Bazel team on PRs labels Oct 7, 2024
@mai93
Copy link
Collaborator

mai93 commented Oct 7, 2024

why is this better than the existing way? is the plan to make it the default?

@LeFrosch
Copy link
Collaborator Author

LeFrosch commented Oct 8, 2024

@mai93 The Idea was to show error messages received by BEP rather than parsing the command line output to increase the quality and relevance of reported errors. In my option, the sync and build view provided by the platform was better suited for displaying these longer messages. Furthermore, I hope that using the platform sync view can save us some maintenance work in the long run, since it is maintained by the platform team.

With regard to making this view the default, this depends, of course, on the feedback we receive. If it is well perceived, I see no reason for not doing so. But maybe it makes sense to make it opt-in in the beginning.

@mai93
Copy link
Collaborator

mai93 commented Oct 8, 2024

Thanks for the explanation! I'd propose guarding it with an experiment instead and enabling it incrementally because we have a lot of features added for specific users behind a key and we never got a sense if they are ready for general rollout.

@tpasternak
Copy link
Collaborator

Btw please hold on, does it work with query sync?

@LeFrosch
Copy link
Collaborator Author

LeFrosch commented Oct 9, 2024

@tpasternak I am not sure how the sync UI for query sync works but the new sync view is just a scope that can be added to the BlazeContext and processes IssueOutputs. If the view works well for regular sync I was planning to also adopt it for running builds and maybe we can also use it for query sync.

@tpasternak
Copy link
Collaborator

Ok, you can just add use_query_sync: true to the projectview file to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review Awaiting review from Bazel team on PRs product: CLion CLion plugin product: GoLand GoLand plugin product: IntelliJ IntelliJ plugin
Projects
Status: Untriaged
Development

Successfully merging this pull request may close these issues.

4 participants