Skip to content

fix: version command refactor #1107

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

Closed
wants to merge 23 commits into from
Closed

fix: version command refactor #1107

wants to merge 23 commits into from

Conversation

saragerion
Copy link
Contributor

@saragerion saragerion commented Sep 29, 2022

Description of your changes

This PR removes all linting related commands from the NPM versioning hooks and makes sure it's done in the CI/CD pipelines actions.

How to verify this change

Related issues, RFCs

Issue number:

PR status

Is this ready for review?: NO
Is it a breaking change?: NO

Checklist

  • My changes meet the tenets criteria
  • I have performed a self-review of my own code
  • I have commented my code where necessary, particularly in areas that should be flagged with a TODO, or hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding changes to the examples
  • My changes generate no new warnings
  • The code coverage hasn't decreased
  • I have added tests that prove my change is effective and works
  • New and existing unit tests pass locally and in Github Actions
  • Any dependent changes have been merged and published in downstream module
  • The PR title follows the conventional commit semantics

Breaking change checklist

  • I have documented the migration process
  • I have added, implemented necessary warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions github-actions bot added the bug Something isn't working label Sep 29, 2022
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lerna-lint-fix
npm run test
Copy link
Contributor

@dreamorosi dreamorosi Oct 3, 2022

Choose a reason for hiding this comment

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

I think we should change this to npm test -ws.

Currently, it will run npm run lerna-test which will run tests in all packages, examples, and layer-publisher.
If instead we changed it to the above we'd be running the unit tests only in packages/* and not in the others.

This is on line with what we discussed in the last conversation about the topic and is captured in #1106. If you want to keep this separate I can open a PR later on.

Aside from where the tests are run only difference between npm run test & npm test -ws is that npm workspaces still doesn't run in parallel but sequentially. I don't think it's a big deal at this stage, but if you want to run it in parallel you can use npm t -w packages/commons & npm t -w packages/logger & npm t -w packages/tracer & npm t -w packages/metrics instead.

dreamorosi and others added 22 commits October 4, 2022 14:33
… version (1.2.1) (#1113)

* chore(build): don't rely on shell shortcut

* doc: bump layer to version 2 corresponding to 1.2.1 PowerTools version

Co-authored-by: Florian Chazal <[email protected]>
…methods (#1108)

* chore: added unit test for captureMethod async/await

* chore: added unit test for captureLambdaHandler async/await

* chore: added comments to document unit test cases

* Update packages/tracer/tests/unit/Tracer.test.ts

Co-authored-by: ijemmy <[email protected]>

* Update packages/tracer/tests/unit/Tracer.test.ts

Co-authored-by: ijemmy <[email protected]>

* chore: fix linting

Co-authored-by: ijemmy <[email protected]>
)

* feat: specify subsegment name when capturing class method

* chore: update key for e2e test cases

* chore: add tips to the docs about setting custom name

* Update docs/core/tracer.md

Co-authored-by: Josh Kellendonk <[email protected]>

* Update packages/tracer/src/types/Tracer.ts

* fix merge conflicts

Co-authored-by: Josh Kellendonk <[email protected]>
* fix: update version command to use lint-fix

* fix: update version command to use lint-fix
This reverts commit 0c700d8, reversing
changes made to 92a3e8d.
@dreamorosi
Copy link
Contributor

Closing in favor of #1125

@dreamorosi dreamorosi closed this Nov 3, 2022
@dreamorosi dreamorosi deleted the fix/version-command branch November 4, 2022 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants