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

Unable to create Gitpod workspace from Bitbucket private branch with format "feature/JIRA-123-summary" #5364

Closed
ryanolsonx opened this issue Aug 24, 2021 · 3 comments · Fixed by #5367

Comments

@ryanolsonx
Copy link

Bug description

I've been trying to start using Gitpod at work. While attempting to open a Bitbucket branch in the format "feature/JIRA-123-summary", I encounter an error "Oh, no! Something went wrong!" message with "Not found." When looking at your code, I'm not sure that the bitbucket-context-parser accounts for this scenario.

Steps to reproduce

  1. Create a private repository with branch "feature/JIRA-123-summary"
  2. Open https://gitpod.io/#https://bitbucket.org/owner/repository/branch/feature/JIRA-123-summary
  3. Notice "Oh, no! Something went wrong!" message with "Not found"

Expected behavior

I expect to be able to open up a Gitpod workspace from a branch in Bitbucket.

Example repository

No response

Anything else?

No response

@ryanolsonx ryanolsonx changed the title Unto to create Gitpod workspace from Bitbucket private branch with format "feature/JIRA-123-summary" Unable to create Gitpod workspace from Bitbucket private branch with format "feature/JIRA-123-summary" Aug 24, 2021
@ghuntley
Copy link
Contributor

ghuntley commented Aug 25, 2021

Observations are as follows:

  1. Created https://bitbucket.org/ghuntley/gitpod-issue-5364 (as a public repository)
  2. Pushed feature/JIRA-123-summary branch
  3. Navigated to the branch in the Bitbucket UI which yields https://bitbucket.org/ghuntley/gitpod-issue-5364/src/9534e0b7e346f5908168cb13ea788d7ad2f8e2fa/?at=feature%2FJIRA-123-summary
  4. Open with Gitpod button launches repository
  5. Source code is cloned at 9534e0b with detached head and not feature/JIRA-123-summary

2021-08-25_15-26-05

  1. Change privacy of https://bitbucket.org/ghuntley/gitpod-issue-5364 to private
  2. Navigated to the branch in the Bitbucket UI which yields https://bitbucket.org/ghuntley/gitpod-issue-5364/src/9534e0b7e346f5908168cb13ea788d7ad2f8e2fa/?at=feature%2FJIRA-123-summary
  3. Used open with Gitpod button to create a new workspace.
  4. Source code is cloned at 9534e0b with detached head and not feature/JIRA-123-summary

So I've been unable to replicate the problem of creating the workspace @ryanolsonx however checking out as a detached head isn't the behaviour that I would expect as GitHub/BitBucket clone using the exact branch name.

edit: Noticed a slight difference in my approach to the original report 👀 `

Confirming reproducibility and the visibility setting of the repository does not matter!

  1. success: https://gitpod.io/#https://bitbucket.org/ghuntley/gitpod-issue-5364/branch/master
  2. failure: https://gitpod.io/#https://bitbucket.org/ghuntley/gitpod-issue-5364/branch/feature/JIRA-123-summary`

2021-08-25_15-52-10

@ghuntley
Copy link
Contributor

Pushed https://bitbucket.org/gitpod/sample-repository/branch/feature/JIRA-123-summary as a test case.

@gtsiolis
Copy link
Contributor

gtsiolis commented Nov 17, 2021

Taking a bias-for-action and adding this in groundwork in case the WIP in #5367 is 90% DONE and anyone from meta team could pick it up and push it through the finish line. 🏁

Cc @jldec @JanKoehnlein

/schedule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants