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

Test continue on for PR comments #193104

Closed
3 tasks done
alexr00 opened this issue Sep 14, 2023 · 18 comments
Closed
3 tasks done

Test continue on for PR comments #193104

alexr00 opened this issue Sep 14, 2023 · 18 comments

Comments

@alexr00
Copy link
Member

alexr00 commented Sep 14, 2023

Refs: #183449

Complexity: 3

Create Issue


When you checkout a PR with GitHub Pull Requests and Issues and write a comment without submitting the comment, we now save these unsubmitted comments for "continue on".

Setup:
You will need two machines that you can install desktop VS Code insiders on. vscode.dev can't be used to test this.
NOTE: Make sure you have the same version of VS Code and GitHub Pull Requests and Issues on both machines
Install the GitHub Pull Requests and Issues extension on both machines.
Install the GitHub Repositories extension on both machines.
Turn on "Cloud changes" from the Account menu on both machines.

To verify:

  1. Check out a PR on machine one using the GitHub Repositories + Remote Repositories extension.
    a. Run the command: "Remote Repositories: Open Remote Repository..."
    b. Choose the option to "Open a Pull Request from GitHub"
    c. Find your PR in the list and choose it
  2. On machine two, check out the same PR with the GitHub Repositories extension.
  3. Back to machine one: Start to write a comment. Do not submit the comment.
  4. On machine one, make a small edit in a file. (@joyceerhl, this seems to be needed for the "Store working changes in cloud" command)
  5. On machine one, Command: "Cloud Changes: Store Working Changes in Cloud"
  6. On machine two, open the file that you were leaving a comment in on machine one in step two.
  7. On machine two, "Cloud Changes: Resume Latest Changes from Cloud"
  8. Verify that the comment from machine one now shows on machine two

Once you have this working some other good things to test (Each time you test you will need to close the old comment, make a new comment, and make a new small edit):

  • Does the sync still work if the file is closed at the time that you "Resume"?
  • Does "Resuming" an unsubmitted reply to a submitted comment work?
  • Does "Resuming" multiple unsubmitted comments work?
@alexr00 alexr00 added this to the September 2023 milestone Sep 14, 2023
@bpasero
Copy link
Member

bpasero commented Sep 26, 2023

@alexr00 that did not work for me at least on macOS. I had tried with https://insiders.vscode.dev/github/microsoft/vscode/pull/191241 having previously added a comment from desktop. Is there a way to figure out?

Web:
image

Desktop:
image

@ulugbekna
Copy link
Contributor

Didn't work for me either.
I checked out a PR on insiders.vscode.dev, started typing in a comment, but didn't submit.
Opened insiders desktop, checked out same PR - no comments

@alexr00
Copy link
Member Author

alexr00 commented Sep 26, 2023

Looks like I have some missing steps. In the setup:

Turn on "Cloud changes" from the Account menu

And steps 3, 4, and 7.

@alexr00
Copy link
Member Author

alexr00 commented Sep 26, 2023

There's still an issue with this feature. This TPI is currently blocked.

alexr00 added a commit that referenced this issue Sep 26, 2023
alexr00 added a commit that referenced this issue Sep 26, 2023
@chrmarti
Copy link
Collaborator

Trying on mac without luck:

Desktop:
image

insiders.vscode.dev:
image

Both are on today's Insiders build and the latest PR extension pre-release from yesterday.

@chrmarti
Copy link
Collaborator

chrmarti commented Sep 27, 2023

From the Cloud Changes output channel on insiders.vscode.dev:

2023-09-27 11:14:56.831 [info] Checking for pending cloud changes...
2023-09-27 11:14:57.122 [info] Matching identity {"remote":"https://github.com/microsoft/vscode-remote-containers","ref":"chrmarti/scared-whitefish","sha":"fa1b08898336475e8734a272c9ab1580c56d0c6f"} against edit session folder identity {"remote":"https://github.com/microsoft/vscode-remote-containers.git","ref":"chrmarti/scared-whitefish","sha":"fa1b08898336475e8734a272c9ab1580c56d0c6f"}...
2023-09-27 11:14:57.124 [info] Skipping applying 2 changes from edit session with ref aecbd60d-9a64-4a8d-bbd2-669b67b02833 as no matching workspace folder was found.

Desktop:

2023-09-27 11:09:26.658 [info] Storing edit session...
2023-09-27 11:09:26.829 [info] Stored edit session with ref aecbd60d-9a64-4a8d-bbd2-669b67b02833.

@ulugbekna
Copy link
Contributor

Works when testing with insiders open in two tabs

@ulugbekna ulugbekna removed their assignment Sep 27, 2023
@alexr00
Copy link
Member Author

alexr00 commented Sep 27, 2023

@bpasero and @anthonykim1 could you please test by opening a PR in insiders.vscode.dev in two different browser tabs using the same steps to open the PR in each tab instead of 1 insiders.vscode.dev instance and one VS Code desktop instance? There appears to be a URI mismatch sometimes, which I'm tracking in #194288. Using the same insiders.vscode.dev URL open in two browser tabs appears to avoid this.

@bpasero
Copy link
Member

bpasero commented Sep 27, 2023

It also does not work for me between 2 browser tabs (the change restores, but not the comment). I suggest to move this feature and testing into October.

@bpasero bpasero removed their assignment Sep 27, 2023
@alexr00 alexr00 modified the milestones: September 2023, October 2023 Sep 27, 2023
@alexr00
Copy link
Member Author

alexr00 commented Sep 27, 2023

Moving to October so we can figure out the URI mismatch.

@anthonykim1
Copy link
Contributor

Let me know @alexr00 if you still wanted me to test this

@alexr00
Copy link
Member Author

alexr00 commented Sep 28, 2023

For now, no further testing is needed. We'll test again during the October endgame.

lins0621 pushed a commit to lins0621/vscode that referenced this issue Oct 7, 2023
@alexr00 alexr00 removed their assignment Oct 10, 2023
@ulugbekna
Copy link
Contributor

It still doesn't work for me, sorry :-(

@ulugbekna ulugbekna removed their assignment Oct 24, 2023
@anthonykim1
Copy link
Contributor

I tried multiple times trying to get this work, but still having some trouble. Tried to use more of the "store in cloud" and the "show cloud changes" but can't seem to see the comments even after actually submitting the comments from different device.
Screenshot 2023-10-24 at 3 24 26 PM

@alexr00
Copy link
Member Author

alexr00 commented Oct 25, 2023

Just walked through with @ulugbekna, and my instructions for checking out the PR were not good enough. I've updated the test steps. Here's how to check out the PR:
a. Run the command: "Remote Repositories: Open Remote Repository..."
b. Choose the option to "Open a Pull Request from GitHub"
c. Find your PR in the list and choose it

It also works better if you open the PR on both machines before trying the feature. I've re-ordered the steps to include this.

@joaomoreno
Copy link
Member

Following the steps very closely actually works. But the entire flow feels flimsy.

  • I kinda expected this to just work in regular checked out repos, not only using Remote Repositories.
  • I also kinda expected it to just work without the Store and Resume commands
  • Do we already have an issue for this seems to be needed for the "Store working changes in cloud" command?
  • Is there any way to test this as it's intended for users to use it, not via all these steps?

@joaomoreno joaomoreno removed their assignment Oct 25, 2023
@bpasero bpasero removed their assignment Oct 25, 2023
@bpasero
Copy link
Member

bpasero commented Oct 25, 2023

This worked only once for me and the things I have to remember to test this are incredibly complex: why do I have to make an edit, why do I have to run a command to sync, why does this not happen automatically? Think about settings sync: it just works.

@alexr00 @joyceerhl I would suggest you two sit together, test the flow end to end, improve the user experience and then we test this again.

@alexr00
Copy link
Member Author

alexr00 commented Oct 25, 2023

Thank you everyone for your persistence in testing this!

@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants