Skip to content

Allow extensions to publish beta releases and users to opt-in to them #15756

Closed

Description

@DanTup

Apologies if this has come up before; I'm unable to find any related issues.

It would be cool to be able to publish extensions in a beta form (similar to Code Insiders) so that they can be run "in production" with real users that have opted-in. This would reduce the disk in publishing an extension because you can push it to a smaller number of users for testing (I probably don't need to sell this to you, I guess you have Insiders for very similar reasons).

I know we can package and distribute extensions ourselves for now, but it's not as easy (eg. updating is not automatic).

I originally thought the "Preview" flag might've provided this functionality but unless I've overlooked something, it does not seem to.

Activity

  1. ramya-rao-a commented on Nov 20, 2016

    @ramya-rao-a
    Contributor

    I would very much like this myself.

  2. added
    extensions
    on Nov 20, 2016
  3. joaomoreno commented on Nov 21, 2016

    @joaomoreno
    Contributor

    Why not putting those experimental features behind a configuration setting and have the opt-in mechanism be toggling that setting to true? Once the feature is stable enough just remove the setting.

  4. added
    feature-request
    on Nov 21, 2016
  5. DanTup commented on Nov 21, 2016

    @DanTup
    ContributorAuthor

    Why not putting those experimental features behind a configuration setting and have the opt-in mechanism be toggling that setting to true?

    This is an option, but I think it has some drawbacks

    1. If you want to do a beta release every day, your "stable" users will get the update notifications too
    2. It doesn't eliminate all the risk (if you're shipping bugs in the new features, maybe your feature detection is buggy, or how you're dealing with two code paths)
    3. For things that aren't just new features, it's more work to maintain/switch between the branches
    4. Users have to keep opting-in to each feature, rather than choosing to be a beta tester once; this could really limit the testing you get
    5. Having the feature toggles show up in the config auto-complete isn't ideal (this might not be an issue, but I didn't get a response to Allow extensions to set configuration options. #1396 (comment) so it's unclear if "hidden options" are supposed to be used)

    None of these issues are huge, but since the Insiders builds work so well and it seems like a similar scenario it seemed like a good request to raise for discussion :)

  6. davidanthoff commented on Nov 23, 2016

    @davidanthoff
    Contributor

    I agree, this would be a really useful feature. Right now I'm distributing our beta releases via VSIX downloads, but that is cumbersome and I don't reach many folks that way.

    Hiding things behind a feature flag wouldn't really help. For example, we are about to release a new version that changes a lot of code, the whole architecture of the extension. There is no way that we could have had that behind a feature flag.

  7. eamodio commented on Mar 27, 2017

    @eamodio
    Contributor

    I would love to see this as well -- while feature flags work in certain cases, it doesn't cover them all. It also provides a sanity check and limits the "damage" of a bad release. And installing via vsix is just too user unfriendly to really be viable imo -- as it is completely manual.

  8. eamodio commented on Sep 29, 2017

    @eamodio
    Contributor

    Just to kick this one again, because the issues surrounding the manual install and REQUIRED uninstall of vsix causes lots of pain for users and seemingly creates cases of corrupt installations -- I've definitely seen an up tick in GitLens issues caused by vsix/marketplace versions on top of one another.

  9. DanTup commented on Sep 29, 2017

    @DanTup
    ContributorAuthor

    Yeah, I meant to post back here - when I did a beta release a few months ago I had reports of issues installing/uninstalling the vsix:

  10. DanTup commented on Dec 10, 2017

    @DanTup
    ContributorAuthor

    I gave up on vsix testing because of the complications mentioned above. Yesterday I shipped a huge bug that only occurred if dart on your PATH was a symlink (I had to make a lot of changes for multi-root support, and putting it all behind flags was not feasible) :(

    I'm starting to think about publishing a second version of my extension with Beta in the name to allow people to choose to test new releases earlier (seems like at least one other has done this).

  11. 201 remaining items

  12. TwitchBronBron commented on Dec 27, 2021

    @TwitchBronBron
    Contributor

    Is there some way to find out from code whether the currently running extension was installed as a pre-release version or not? We want to send telemetry to different destinations, depending on whether a user is running a pre-release version or not.

    A version cannot be both pre-release and not pre-release, so if you manage the extension, then you are in control of the process for launching pre-release versions and therefore know which versions are pre-release. If you follow the suggestions outlined in the documentation:

    we recommend that extensions use major.EVEN_NUMBER.patch for release versions and major.ODD_NUMBER.patch for pre-release versions. For example: 0.2.* for release and 0.3.* for pre-release.

    then you can easily check the current extension version and act accordingly based on whether is an even or odd minor release.

  13. isidorn commented on Jan 3, 2022

    @isidorn

    David Anthoff (@davidanthoff) exactly as Bronley Plumb (@TwitchBronBron) explained: you can look at your extension version and act accordingly.

  14. rchiodo commented on Jan 7, 2022

    @rchiodo
    Contributor

    There's a lot to read through in this issue and I wasn't sure what the expected behavior is with regards to 'insiders'.

    Should insiders users automatically be updated the prerelease of an extension?

    This isn't currently happening for the Jupyter Extension.

    I had to explicitly pick 'Switch to prerelease version'

    image

  15. sean-mcmanus commented on Jan 7, 2022

    @sean-mcmanus
    Contributor

    Uh oh...if VS Code Insiders users have to manually opt-in, we're likely to see our Insiders usage drop by a lot. Bob Brown (@bobbrow) Are you sure we should switch to the new mechanism if that's the case? And/or can we get VS Code to change the behavior first?

  16. isidorn commented on Jan 7, 2022

    @isidorn

    We support automatically migrating separate extensions to the pre-release version of the main extension - extension authors just have to inform us they want this.
    However since C++ and Jupyter have a special case and you do not have separate extensions we currently do not support automatic migration done by VS Code. However you can do the migration on your own as discussed here microsoft/vscode-cpptools#8507 (comment)

  17. gjsjohnmurray commented on Jan 7, 2022

    @gjsjohnmurray
    Contributor

    For me just now, when I used Insiders and searched for the GHPRI extension (which I know published pre-releases), the Install button defaulted to Pre-Release:

    image

    Doing the same with Stable defaults to a regular install:

    image

  18. rchiodo commented on Jan 7, 2022

    @rchiodo
    Contributor

    We support automatically migrating separate extensions to the pre-release version of the main extension - extension authors just have to inform us they want this. However since C++ and Jupyter have a special case and you do not have separate extensions we currently do not support automatic migration done by VS Code. However you can do the migration on your own as discussed here microsoft/vscode-cpptools#8507 (comment)

    Isidor Nikolic (@isidorn) I'm not sure that's going to work? Won't it force all users to the latest? For me I didn't want the latest, but when I do, it should show me the latest is the prerelease version. That's the behavior we have right now. Users pick when they upgrade, but the recommended upgrade is the most recent insiders only build.

  19. isidorn commented on Jan 7, 2022

    @isidorn

    John Murray (@gjsjohnmurray) correct.
    Rich Chiodo (@rchiodo) yes, the insiders users will by default get the option to install Pre-Release. My previous answer was my misunderstanding of your question. For me this just works

    Screenshot 2022-01-07 at 19 12 18

  20. isidorn commented on Jan 7, 2022

    @isidorn

    Rich Chiodo (@rchiodo) you would just do that code for your insider version of the extension. So that way you would transition only your insider users to the new pre-release version.

  21. rchiodo commented on Jan 7, 2022

    @rchiodo
    Contributor

    Isidor Nikolic (@isidorn) that's the behavior with the jupyter extension not already installed. But if it was already installed, the update notification won't pick prerelease.

    And I believe the command suggested would force an update? Maybe I'm wrong about that.

  22. rchiodo commented on Jan 7, 2022

    @rchiodo
    Contributor

    I guess it won't be terrible to force prerelease if the extension isn't already in insiders for a specific version (one time thing).

    Maybe we can add code to ask the user on insiders.

  23. isidorn commented on Jan 7, 2022

    @isidorn

    Rich Chiodo (@rchiodo) there is just one minor thing missing to have this flow super nice #139528
    We plan to tackle this in the next two weeks.

    And yes. So my full suggestion is the following:

    1. For your current Insiders jupyter version do the following
    2. Show a persistent notification to the user, or a modal dialog "bla bla we moved to pre-release - click here to be migrated"
    3. Once user clicks -> execute the code. Once Opt in to pre-release versions when installing an extension with installPreReleaseVersion flag #139528 is done all should be good

    Hope I was more clear now. Thank you

  24. eamodio commented on Jan 7, 2022

    @eamodio
    Contributor

    Also another way to ensure users don't automatically get switched to a non-insiders release (if that is what you want) -- you can have your insiders versions always be greater than stable version. For example in GitLens I am planning to keep my YYYY.MM.DDHH version format for insiders.

  25. alexr00 commented on Jan 10, 2022

    @alexr00
    Member

    Also another way to ensure users don't automatically get switched to a non-insiders release (if that is what you want) -- you can have your insiders versions always be greater than stable version.

    GitHub Pull Requests and issues does the same thing. Before releasing a new stable, we will always release a new insiders with the increased version.

  26. locked and limited conversation to collaborators on Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

extensionsfeature-requestmarketplaceon-testplanupstreamupstream-issue-linked

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions