Skip to content

Open VSX switch, Part II #4319

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

Merged
merged 2 commits into from
Nov 10, 2021
Merged

Open VSX switch, Part II #4319

merged 2 commits into from
Nov 10, 2021

Conversation

GirlBossRush
Copy link
Contributor

@GirlBossRush GirlBossRush commented Oct 7, 2021

This PR continues the work set in place by Oxy in #2659, migrating our default configuration extension marketplace to VSX. We’ve received reports of extensions refusing to install, or exhibiting odd behaviors. I believe this is one part due to outdated extensions in our marketplace, and another regarding Microsoft’s upstream changes to determine what makes an extension “web compatible."

See coder/vscode@5f00e79 for additional implementation details.

Closes #1473

@GirlBossRush GirlBossRush added bug Something isn't working enhancement Some improvement that isn't a feature labels Oct 7, 2021
@GirlBossRush GirlBossRush self-assigned this Oct 7, 2021
@GirlBossRush GirlBossRush requested a review from a team as a code owner October 7, 2021 07:49
@github-actions
Copy link

github-actions bot commented Oct 7, 2021

✨ Coder.com for PR #4319 deployed! It will be updated on every commit.

Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so exciting!!! 🎉

Great work @TeffenEllis 🚀

Requesting changes only to ask if you don't mind updating this reply from Ranger - it's a bot which auto-responds and closes issues labeled extension-request. I'm wondering if we should also remove the issue template and remove the bot response all together?


```bash
export SERVICE_URL=https://open-vsx.org/vscode/gallery
export ITEM_URL=https://open-vsx.org/vscode/item
export EXTENSIONS_GALLERY='{"serviceUrl": "https://extensions.coder.com/api"}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still support SERVICE_URL and ITEM_URL or is this a breaking change?

Copy link
Member

@code-asher code-asher Oct 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm, saw the implementation, we may want to make a note in the changelog so we remember to update the enterprise product 📓 (or maybe we can use the old vars as fallbacks)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, the two env’s have been replaced with the single EXTENSIONS_GALLERY as Microsoft upstream is now defining several keys we’d need to override. IMO, the empty env ITEM_URL= code-server … also had some tricky ergonomics.

@jsjoeio
Copy link
Contributor

jsjoeio commented Oct 7, 2021

I think we need to fix this failing unit test. I was going to use .toMatch but got lazy because that takes a regex I think and I forgot to add it in.

   /_static  disabled authentication  should return a 404 when a file is not provided

    expect(received).toContain(expected) // indexOf

    Expected substring: "not found"
    Received string:    "Not Found"

      45 | 
      46 |       const content = await resp.json()
    > 47 |       expect(content.error).toContain(NOT_FOUND.message)
         |                             ^
      48 |     })

jsjoeio
jsjoeio previously requested changes Oct 7, 2021
Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good! Only putting "Request changes" to make sure we fix that unit test before approving and merging

src/node/http.ts Outdated
Comment on lines 16 to 23
export interface ClientConfiguration {
codeServerVersion: string
base: string
csStaticBase: string
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah-HA! My PR for the e2e test fix needed this!

@GirlBossRush GirlBossRush enabled auto-merge (rebase) October 8, 2021 15:56
@codecov
Copy link

codecov bot commented Oct 8, 2021

Codecov Report

Merging #4319 (e7712cc) into main (1b60ef4) will not change coverage.
The diff coverage is n/a.

❗ Current head e7712cc differs from pull request most recent head 4ca05c2. Consider uploading reports for the commit 4ca05c2 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4319   +/-   ##
=======================================
  Coverage   66.46%   66.46%           
=======================================
  Files          30       30           
  Lines        1625     1625           
  Branches      330      330           
=======================================
  Hits         1080     1080           
  Misses        463      463           
  Partials       82       82           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b60ef4...4ca05c2. Read the comment docs.

@GirlBossRush GirlBossRush dismissed jsjoeio’s stale review October 8, 2021 17:06

Applied test changes.

Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

(P.S. automerge may not work - at least it hasn't been working for me)

@jsjoeio
Copy link
Contributor

jsjoeio commented Oct 29, 2021

If we fix the conflicts, is this ready to be merged?

@GirlBossRush
Copy link
Contributor Author

@jsjoeio this can likely be rebased when #4414 is merged, which will include VSX due to version incompatibilities in our previous marketplace

@GirlBossRush GirlBossRush added the blocked This issue cannot proceed due to external factors label Oct 30, 2021
Akash Satheesan and others added 2 commits November 10, 2021 09:18
- Remove extension related github configs.
- Update tests to reflect new upstream behavior.
auto-merge was automatically disabled November 10, 2021 14:44

Rebase merges are not allowed on this repository

@GirlBossRush GirlBossRush removed the blocked This issue cannot proceed due to external factors label Nov 10, 2021
@GirlBossRush GirlBossRush merged commit e4a797d into main Nov 10, 2021
@GirlBossRush GirlBossRush deleted the openvsx-switch branch November 10, 2021 15:01
@jsjoeio jsjoeio mentioned this pull request Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement Some improvement that isn't a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate with open-vsx.org
3 participants