Closed moroine closed 3 years ago
However, if I trigger a new release on @nugit/csv-service-client
without any modification on @nugit/csv-service-types
result package.json is valid (using 1.0.0-beta.7
)
CC @davikawasaki
Hey, @moroine,
It's hard to say what exactly is broken. Could you run the next release with --debug
flag to obtain a bit more details about the issue.
@antongolub yes I will add this flag. Also happening when I modify @nugit/csv-service-types
only. In term of trigger, it creates the @nugit/csv-service-client
patch first then @nugit/csv-service-types
. Maybe dependency order is broken 🤔
Here is the debug log
$ multi-semantic-release --deps.bump=inherit --debug
multi-semantic-release version: 2.8.0
semantic-release version: 17.4.2
flags: {
"deps": {
"bump": "inherit",
"release": "patch"
},
"debug": true,
"sequentialInit": false,
"firstParent": false,
"dryRun": false
}
package paths [
'/home/runner/work/csv-service/csv-service/packages/api/package.json',
'/home/runner/work/csv-service/csv-service/packages/client/package.json',
'/home/runner/work/csv-service/csv-service/packages/example/package.json',
'/home/runner/work/csv-service/csv-service/packages/types/package.json'
]
[10:38:40 AM] › 🎉 Started multirelease! Loading 4 packages...
[10:38:41 AM] › ✔ Loaded package csv-service-api
[10:38:41 AM] › ✔ Loaded package @nugit/csv-service-client
[10:38:41 AM] › ✔ Loaded package csv-service-example
[10:38:41 AM] › ✔ Loaded package @nugit/csv-service-types
[10:38:41 AM] › 🎉 Queued 4 packages! Starting release...
2021-05-12T10:38:41.180Z msr:inlinePlugin inlinePlugin created: csv-service-api
[10:38:41 AM] [csv-service-api] › ℹ Running semantic-release version 17.4.2
2021-05-12T10:38:41.182Z msr:inlinePlugin inlinePlugin created: @nugit/csv-service-client
[10:38:41 AM] [@nugit/csv-service-client] › ℹ Running semantic-release version 17.4.2
2021-05-12T10:38:41.183Z msr:inlinePlugin inlinePlugin created: csv-service-example
[10:38:41 AM] [csv-service-example] › ℹ Running semantic-release version 17.4.2
2021-05-12T10:38:41.184Z msr:inlinePlugin inlinePlugin created: @nugit/csv-service-types
[10:38:41 AM] [@nugit/csv-service-types] › ℹ Running semantic-release version 17.4.2
[10:38:41 AM] [@nugit/csv-service-client] › ✔ Loaded plugin "verifyRelease" from "@semantic-release/exec"
[10:38:41 AM] [@nugit/csv-service-client] › ✔ Loaded plugin "addChannel" from "@semantic-release/npm"
[10:38:41 AM] [@nugit/csv-service-client] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
[10:38:41 AM] [@nugit/csv-service-client] › ✔ Loaded plugin "addChannel" from "@semantic-release/exec"
[10:38:41 AM] [@nugit/csv-service-client] › ✔ Loaded plugin "success" from "@semantic-release/github"
[10:38:41 AM] [@nugit/csv-service-client] › ✔ Loaded plugin "success" from "@semantic-release/exec"
[10:38:41 AM] [@nugit/csv-service-client] › ✔ Loaded plugin "success" from "semantic-release-slack-bot"
[10:38:41 AM] [@nugit/csv-service-client] › ✔ Loaded plugin "fail" from "@semantic-release/github"
[10:38:41 AM] [@nugit/csv-service-client] › ✔ Loaded plugin "fail" from "@semantic-release/exec"
npm notice 3.9kB dist/es/hooks/useCsvService.js.map
npm notice 1.7kB dist/es/hooks/useMappingStep.js
npm notice 5.1kB dist/es/hooks/useMappingStep.js.map
npm notice 1.6kB dist/es/hooks/useParseStep.js
npm notice 4.5kB dist/es/hooks/useParseStep.js.map
npm notice 1.3kB dist/es/hooks/useReviewStep.js
npm notice 4.0kB dist/es/hooks/useReviewStep.js.map
npm notice 1.5kB dist/es/hooks/useUploadStep.js
npm notice 4.4kB dist/es/hooks/useUploadStep.js.map
npm notice 154B dist/es/index.js
npm notice 90B dist/es/index.js.map
npm notice 2.5kB dist/es/pages/CsvService.js
npm notice 4.0kB dist/es/pages/CsvService.js.map
npm notice 2.9kB dist/es/pages/MappingStep.js
npm notice 3.2kB dist/es/pages/MappingStep.js.map
npm notice 1.3kB dist/es/pages/ParseStep.js
npm notice 1.5kB dist/es/pages/ParseStep.js.map
npm notice 1.5kB dist/es/pages/ReviewStep.js
npm notice 1.6kB dist/es/pages/ReviewStep.js.map
npm notice 1.5kB dist/es/pages/UploadStep.js
npm notice 1.7kB dist/es/pages/UploadStep.js.map
npm notice 6.4kB jest.config.js
npm notice 2.4kB package.json
npm notice 1.7kB release.config.js
npm notice 380B src/.eslintrc.json
npm notice 3.8kB src/components/ColumnMappingForm/ColumnMappingForm.jsx
npm notice 1.4kB src/components/ColumnMappingForm/ColumnMappingForm.stories.jsx
npm notice 452B src/components/Error/ErrorComponent.jsx
npm notice 6.9kB src/components/MappingConfigModal/MappingConfigModal.jsx
npm notice 1.9kB src/components/MappingConfigModal/MappingConfigModal.stories.jsx
npm notice 2.0kB src/components/MappingField/MappingField.jsx
npm notice 2.0kB src/components/MappingField/MappingField.stories.jsx
npm notice 549B src/components/PageLayout/PageLayout.jsx
npm notice 3.2kB src/components/RunnerResultView/RunnerResultView.jsx
npm notice 1.0kB src/components/RunnerResultView/RunnerResultView.stories.jsx
npm notice 1.7kB src/components/SpecsError/SpecsError.jsx
npm notice 814B src/components/SpecsError/SpecsError.stories.jsx
npm notice 1.5kB src/components/StepProgress/StepProgress.jsx
npm notice 540B src/components/StepProgress/StepProgress.stories.jsx
npm notice 3.6kB src/components/UploadForm/UploadForm.jsx
npm notice 693B src/components/UploadForm/UploadForm.stories.jsx
npm notice 2.0kB src/hooks/useCapabilities.js
npm notice 2.2kB src/hooks/useCsvService.js
npm notice 2.7kB src/hooks/useMappingStep.js
npm notice 2.2kB src/hooks/useParseStep.js
npm notice 2.1kB src/hooks/useReviewStep.js
npm notice 2.2kB src/hooks/useUploadStep.js
npm notice 124B src/index.js
npm notice 41B src/index.test.js
npm notice 2.1kB src/pages/CsvService.jsx
npm notice 1.6kB src/pages/MappingStep.jsx
npm notice 789B src/pages/ParseStep.jsx
npm notice 796B src/pages/ReviewStep.jsx
npm notice 820B src/pages/UploadStep.jsx
npm notice === Tarball Details ===
npm notice name: @nugit/csv-service-client
npm notice version: 1.1.0-beta.17
npm notice filename: @nugit/csv-service-client-1.1.0-beta.17.tgz
npm notice package size: 53.0 kB
npm notice unpacked size: 385.4 kB
npm notice shasum: d84d8388bf15f608380ba4f8815c3815e51f9ea6
npm notice integrity: sha512-HlAOy5RGV7kQR[...]JBVpFKEGyTnCg==
npm notice total files: 124
npm notice
+ @nugit/csv-service-client@1.1.0-beta.17
2021-05-12T10:39:08.388Z msr:inlinePlugin published: @nugit/csv-service-client
[10:39:08 AM] [@nugit/csv-service-client] › ✔ Completed step "publish" of plugin "Inline plugin"
[10:39:08 AM] [@nugit/csv-service-client] › ℹ Start step "success" of plugin "@semantic-release/github"
[10:39:10 AM] [@nugit/csv-service-client] › ✔ Completed step "success" of plugin "@semantic-release/github"
[10:39:10 AM] [@nugit/csv-service-client] › ℹ Start step "success" of plugin "@semantic-release/exec"
[10:39:10 AM] [@nugit/csv-service-client] › ✔ Completed step "success" of plugin "@semantic-release/exec"
[10:39:10 AM] [@nugit/csv-service-client] › ℹ Start step "success" of plugin "semantic-release-slack-bot"
[10:39:10 AM] [@nugit/csv-service-client] [semantic-release-slack-bot] › ℹ Sending slack notification on success
[10:39:10 AM] [@nugit/csv-service-client] › ✔ Completed step "success" of plugin "semantic-release-slack-bot"
[10:39:10 AM] [@nugit/csv-service-client] › ✔ Published release 1.1.0-beta.17 on beta channel
[10:39:10 AM] › 🎉 Released 2 of 4 packages, semantically!
Done in 30.82s.
What's interesting is this portion:
[10:38:52 AM] [@nugit/csv-service-types] › ✔ Created tag @nugit/csv-service-types@1.0.0-beta.9
[10:38:52 AM] [@nugit/csv-service-types] › ℹ Start step "publish" of plugin "Inline plugin"
2021-05-12T10:38:52.746Z msr:synchronizer ready: _readyForTagging:@nugit/csv-service-client
2021-05-12T10:38:52.747Z msr:updateDeps [@nugit/csv-service-client] package.json path= /home/runner/work/csv-service/csv-service/packages/client/package.json
2021-05-12T10:38:52.747Z msr:updateDeps [@nugit/csv-service-client] changes= {
dependencies: { '@nugit/csv-service-types': '0.0.0 → 1.1.0-beta.17' }
}
I think this is solved by #72 and #74. Could you try?
I think this is solved by #72 and #74. Could you try?
Looks like it's solved
@dhoulb @reuzel https://github.com/dhoulb/multi-semantic-release/pull/74 breaks the packages into an infinite loops....
The deploy wasn't working in github action ending in memory issue. Did run the script locally and it looks like an infinite loop, I'm having a lot of msr:synchronizer ready: _depCheckxxxxxx +0ms
messages which seems to come from the PR. FYI I'm on round msr:synchronizer ready: _depCheck8129473 +0ms
Here is what I have for packages
variable after the first round. transformer-service-api
is private and will never been deployed. So it's not analyzed
[
{
path: '/Users/moroine/Workspace/Nugit/transformer-service/packages/api/package.json',
dir: '/Users/moroine/Workspace/Nugit/transformer-service/packages/api',
name: 'transformer-service-api',
manifest: {
name: 'transformer-service-api',
private: true,
version: '0.0.0',
repository: 'https://github.com/nugit/transformer-service.git',
author: 'moroine@nugit.co',
license: 'SEE LICENSE IN LICENSE.md',
engines: [Object],
devDependencies: [Object],
scripts: [Object],
dependencies: [Object]
},
deps: [
'@nugit/cache-service',
'@nugit/core-service',
'@nugit/env-service',
'@nugit/logger-service',
'@nugit/metadata-service',
'@nugit/team-db-service',
'@nugit/transformer-service-types',
'@nugit/types',
'@nugit/util-service',
'@sentry/serverless',
'flow-aws-lambda',
'mongodb',
'proposal-temporal',
'typed-validators',
'@babel/core',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-runtime',
'@babel/preset-env',
'@babel/preset-flow',
'@sentry/webpack-plugin',
'@shelf/jest-mongodb',
'babel-jest',
'babel-loader',
'jest',
'jest-date-mock',
'serverless',
'serverless-domain-manager',
'serverless-offline',
'serverless-stage-manager',
'serverless-webpack',
'webpack',
'webpack-cli',
'webpack-node-externals'
],
options: {
branches: [Array],
repositoryUrl: 'https://github.com/nugit/transformer-service.git',
tagFormat: 'v${version}',
plugins: [Array]
},
plugins: {
analyzeCommits: [AsyncFunction (anonymous)],
generateNotes: [AsyncFunction (anonymous)],
verifyConditions: [AsyncFunction (anonymous)],
prepare: [AsyncFunction (anonymous)],
publish: [AsyncFunction (anonymous)],
addChannel: [AsyncFunction (anonymous)],
success: [AsyncFunction (anonymous)],
fail: [AsyncFunction (anonymous)],
verifyRelease: [AsyncFunction (anonymous)]
},
loggerRef: { error: [Function: error], log: [Function: log] },
localDeps: [ [Object] ],
result: false
},
{
path: '/Users/moroine/Workspace/Nugit/transformer-service/packages/types/package.json',
dir: '/Users/moroine/Workspace/Nugit/transformer-service/packages/types',
name: '@nugit/transformer-service-types',
manifest: {
name: '@nugit/transformer-service-types',
version: '0.0.0',
repository: 'https://github.com/nugit/transformer-service',
author: 'Moroine Bentefrit <moroine@nugit.co>',
license: 'SEE LICENSE IN LICENSE.md',
main: 'src/index.js',
engines: [Object],
devDependencies: [Object],
sideEffects: false,
scripts: [Object],
dependencies: {},
publishConfig: [Object]
},
deps: [
'@semantic-release/changelog',
'@semantic-release/exec',
'@semantic-release/git',
'semantic-release',
'semantic-release-slack-bot'
],
options: {
branches: [Array],
repositoryUrl: 'https://github.com/nugit/transformer-service.git',
tagFormat: 'v${version}',
plugins: [Array]
},
plugins: {
analyzeCommits: [AsyncFunction (anonymous)],
generateNotes: [AsyncFunction (anonymous)],
verifyConditions: [AsyncFunction (anonymous)],
prepare: [AsyncFunction (anonymous)],
publish: [AsyncFunction (anonymous)],
addChannel: [AsyncFunction (anonymous)],
success: [AsyncFunction (anonymous)],
fail: [AsyncFunction (anonymous)],
verifyRelease: [AsyncFunction (anonymous)]
},
loggerRef: {
error: [Function: bound _logger],
log: [Function: bound _logger],
_interactive: false,
_config: [Object],
_customTypes: [Object],
_disabled: false,
_scopeName: [Array],
_timers: Map(0) {},
_types: [Object],
_stream: [Array],
_longestLabel: 'watching',
_secrets: [],
_generalLogLevel: 'info',
fatal: [Function: bound _logger],
fav: [Function: bound _logger],
info: [Function: bound _logger],
star: [Function: bound _logger],
success: [Function: bound _logger],
wait: [Function: bound _logger],
warn: [Function: bound _logger],
complete: [Function: bound _logger],
pending: [Function: bound _logger],
note: [Function: bound _logger],
start: [Function: bound _logger],
pause: [Function: bound _logger],
debug: [Function: bound _logger],
await: [Function: bound _logger],
watch: [Function: bound _logger]
},
localDeps: [],
_ready: true,
_preRelease: 'beta',
_branch: 'develop',
_lastRelease: {
version: '1.1.0-beta.1',
gitTag: '@nugit/transformer-service-types@1.1.0-beta.1',
channels: [Array],
gitHead: '1d4ce5d34542f12f5b82a8dc07665b54bcc80807',
name: '@nugit/transformer-service-types@1.1.0-beta.1'
},
_nextType: 'minor',
_analyzed: true,
_depsChanged: [],
_depCheck0: 'stable'
}
]
@reuzel @dhoulb @antongolub I think the check need to be processed only on when the _ready
flag is present
@antongolub @davikawasaki @reuzel any update on this?
@moroine,
Sorry, we have extremely few free resources right now.
@moroine,
Sorry, we have extremely few free resources right now.
I've created a PR which should fix the issue, hope you'll find some time to have a look at it soon.
:tada: This issue has been resolved in version 2.8.5 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Hi,
Everything was working fine, but recently I found this issue (maybe a regression 🤔).
I have a workspace with 4 packages:
packages/api
packages/client:
@nugit/csv-service-client
packages/typest:
@nugit/csv-service-types
packages/example
example & API are private so they are ignored.
@nugit/csv-service-client
depends on@nugit/csv-service-types
@nugit/csv-service-client
package.json@nugit/csv-service-types
package.jsonThe issue I'm facing is while
@nugit/csv-service-client
is being deployed as1.1.0-beta.13
&@nugit/csv-service-client
as1.0.0-beta.7
in package.json published in npm@nugit/csv-service-client
requires version@nugit/csv-service-client@1.1.0-beta.13
which doesn't exists.