Skip to content

Move extensions and settings under customizations.vscode - #97

Merged
Samruddhi Khandale (samruddhikhandale) merged 6 commits into
mainfrom
samruddhikhandale-customizations
Aug 17, 2022
Merged

Samruddhi Khandale (samruddhikhandale) merged 6 commits into
mainfrom
samruddhikhandale-customizations

Conversation

@samruddhikhandale

Copy link
Copy Markdown
Member

Addresses - #92 (comment)

joshspicer
joshspicer previously approved these changes Aug 16, 2022

@joshspicer joshspicer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you! We'll also probably want to bump versions

@samruddhikhandale

Samruddhi Khandale (samruddhikhandale) commented Aug 16, 2022 •

Copy link
Copy Markdown
Member Author

joshspicer For bumping versions, are we following bump version (according to semver) if you change something in the feature logic?

I am worried if that won't always work. For example, for rust we currently have 1.0.0 as latest but this PR did bump it up to 1.0.1 so ideally I shouldn't bump rust version in my PR, correct? but what if there's a race condition in my PR merging and features publishing?

I wonder if we should always create a separate PR which bumps versions before every release, that way we won't have inconsistencies. (We could decide on PR title which will make it simpler to decide whether or not to bump version of a particular feature by looking at the commit history.)

@joshspicer

Copy link
Copy Markdown
Contributor

I think main should always be the source of truth, and when we merge a feature with an updated version, the action should do the proper publishing and retagging. I think this would solve any problems related to versioning. We haven't discussed release cadence, but I don't see why a feature in main shouldn't be published.

We may want the devcontainer feature publish command to refuse to publish an older breakfix version than what it has already seen, maybe that will also help mitigate any problems you foresee?

@joshspicer

Copy link
Copy Markdown
Contributor

Perhaps we have the github action run on PRs and scan all features in main, and fail if there is an inconsistency in the versioning.

@samruddhikhandale

Copy link
Copy Markdown
Member Author

We haven't discussed release cadence, but I don't see why a feature in main shouldn't be published.

I somehow don’t like the idea of publishing features as soon as the PR merges, but this could be just me.

Cons

  • The PR changes will be immediately available to the public, it seems scary and having some gap might help catch more bugs
  • We would have plenty of new patch versions, as we will end up creating new releases which might not even be user visible (eg - doc updates, nits, code shuffling)
@samruddhikhandale

Copy link
Copy Markdown
Member Author

We may want the devcontainer feature publish command to refuse to publish an older breakfix version than what it has already seen, maybe that will also help mitigate any problems you foresee?

But we'd like to support that scenario to be able to publish a hotfix for minor/patch scenario. example

@samruddhikhandale

Samruddhi Khandale (samruddhikhandale) commented Aug 16, 2022 •

Copy link
Copy Markdown
Member Author

Perhaps we have the github action run on PRs and scan all features in main, and fail if there is an inconsistency in the versioning.

Liked this 💡

image

Enabling this branch protection policy should help with what you are referring to, the PR will have merge conflicts in case of inconsistencies in main.

But probably, we should create an action which compares the version in the PR with what's published. So that the PR won't set version:1.0.3 when 1.0.2 doesn't even exist.

@samruddhikhandale

Copy link
Copy Markdown
Member Author

Discussed the version issue offline, joshspicer could you help re-approve?
Bumped versions that are needed.

@samruddhikhandale
Samruddhi Khandale (samruddhikhandale) deleted the samruddhikhandale-customizations branch August 17, 2022 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants