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

Remove dep on bolt and fix 2fa stuff #106

Merged
merged 17 commits into from
Jul 5, 2019

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented Jul 1, 2019

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jul 1, 2019

🦋 Changeset is good to go

Latest commit: 5d03edd

We got this.

Not sure what this means? Click here to learn what changesets are.

@emmatown emmatown requested review from Noviny and removed request for Noviny July 1, 2019 01:02
@codecov-io
Copy link

codecov-io commented Jul 1, 2019

Codecov Report

Merging #106 into master will decrease coverage by 5.59%.
The diff coverage is 7.92%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #106     +/-   ##
=========================================
- Coverage   82.66%   77.07%   -5.6%     
=========================================
  Files          31       33      +2     
  Lines         819      881     +62     
  Branches      144      160     +16     
=========================================
+ Hits          677      679      +2     
- Misses        131      193     +62     
+ Partials       11        9      -2
Impacted Files Coverage Δ
packages/cli/src/utils/logger.ts 12.5% <ø> (ø) ⬆️
.../src/utils/bolt-replacements/getDependencyGraph.ts 90.62% <ø> (ø) ⬆️
packages/get-workspaces/src/index.ts 96.42% <ø> (ø) ⬆️
packages/cli/src/utils/errors.ts 0% <0%> (ø)
...ckages/cli/src/commands/release/publishPackages.ts 0% <0%> (ø)
packages/cli/src/commands/bump/index.js 96.82% <100%> (+0.05%) ⬆️
packages/cli/src/commands/release/index.ts 77.27% <37.5%> (ø)
packages/cli/src/commands/release/npm-utils.ts 6.89% <6.89%> (ø)
... and 1 more

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 e55fa3f...5d03edd. Read the comment docs.

@emmatown emmatown requested a review from Noviny July 1, 2019 02:17
Copy link
Collaborator

@Noviny Noviny left a comment

Choose a reason for hiding this comment

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

Code for this looks good (aside from removing bolt dependency) - manual testing showed a weirdness. Was running publish in: https://github.com/Noviny/test-changeset

image

Basically, it asked me for 2fa, then immediately asked me again, then return publishing successes. Tested this twice and got the same results.

Aside, added a mental backlog task to move this repo into changesets, and the packages into the changesets scope, so anyone with scope access can use these packages to test whatever.

package.json Outdated
"term-size": "^2.1.0",
"p-limit": "^2.2.0",
"spawndamnit": "^2.0.0",
"is-ci": "^2.0.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I couldn't find any instance where we are using bolt in our packages - can we remove the dependency from here entirely?

${
pkg.name
} has a dependency on ${depName} at ${depRange}, however the new version of ${
// TODO: look into this, accessing internalDeps[depName] seems wrong
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think these checks may still make sense, but it's more 'release plan will create invalid state' - We may want to lean on bolt-check to do this, and filter the errors we get?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Bump is the thing most impacted by my rewrite, so I wouldn't worry about fixing these now, I'll be doing a pass over the messaging around running bumps as part of that.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, I wrote a comment about changing the error message to something like that above, this comment was purely about accessing internalDeps[depName] because internalDeps is an array and depName is a string so the result will always be undefined.

// TODO: this error message was copied directly from bolt
// it seems wrong, shouldn't this case be covered by dependents stuff
// and this should be something like "this should never happen, please open an issue because there's probably a bug in changesets"

@Noviny Noviny merged commit 94267ff into master Jul 5, 2019
@Noviny Noviny deleted the mitchellhamilton/remove-dep-on-bolt-and-fix-2fa-stuff branch July 5, 2019 06:02
dword-design pushed a commit to dword-design/changesets that referenced this pull request Feb 8, 2020
* Remove usages of bolt

* Fix the cli asking for an otp multiple times incorrectly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants