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

ci(custom-checks): fix sibling pkg dependency version inconsistencies #2431

Closed
rwat17 opened this issue May 22, 2023 · 2 comments · Fixed by #2457
Closed

ci(custom-checks): fix sibling pkg dependency version inconsistencies #2431

rwat17 opened this issue May 22, 2023 · 2 comments · Fixed by #2457
Assignees
Labels
bug Something isn't working dependencies Pull requests that update a dependency file Developer_Experience good-first-issue Good for newcomers good-first-issue-100-introductory Hacktoberfest Hacktoberfest participants are welcome to take a stab at issues marked with this label. P2 Priority 2: High

Comments

@rwat17
Copy link
Contributor

rwat17 commented May 22, 2023

npm run custom-checks
In root dir prints these errors:

ERROR: packages/cactus-plugin-ledger-connector-ubiquity/package.json dependencies.@hyperledger/cactus-core incorrectly has version 1.1.2. Expected 1.1.3
ERROR: packages/cactus-plugin-ledger-connector-ubiquity/package.json dependencies.@hyperledger/cactus-core-api incorrectly has version 1.1.2. Expected 1.1.3
ERROR: packages/cactus-plugin-ledger-connector-ubiquity/package.json devDependencies.@hyperledger/cactus-common incorrectly has version 1.1.2. Expected 1.1.3
ERROR: packages/cactus-plugin-ledger-connector-ubiquity/package.json devDependencies.@hyperledger/cactus-test-tooling incorrectly has version 1.1.2. Expected 1.1.3

Are these versions intentionally older for now or should I replace them?

https://github.com/hyperledger/cacti/blob/main/packages/cactus-plugin-ledger-connector-ubiquity/package.json

https://github.com/hyperledger/cacti/blob/3e6d908cb4cf732ef057a30df3e8267381f3f806/packages/cactus-plugin-ledger-connector-ubiquity/package.json#L58

@rwat17 rwat17 added the bug Something isn't working label May 22, 2023
@petermetz
Copy link
Contributor

@rwat17 Thank you for reporting! This is indeed a bug, the versions should be consistent across the framework codebase!
The custom-checks are planned to be part of the CI as well so that every PR that gets the versions out of sync would fail the checks and force us to make them consistent before the diff makes it to the main branch.

TLDR: Yes, please send a PR with making the versions consistent (or let me know if you'd prefer to not work on it and we'll get it done)

@petermetz petermetz added P2 Priority 2: High good-first-issue Good for newcomers dependencies Pull requests that update a dependency file Developer_Experience Hacktoberfest Hacktoberfest participants are welcome to take a stab at issues marked with this label. good-first-issue-100-introductory labels Jun 14, 2023
@rwat17
Copy link
Contributor Author

rwat17 commented Jun 14, 2023

@petermetz will do this in the meantime today :)

rwat17 added a commit to rwat17/cactus that referenced this issue Jun 14, 2023
rwat17 added a commit to rwat17/cactus that referenced this issue Jun 14, 2023
sandeepnRES pushed a commit to rwat17/cactus that referenced this issue Jun 15, 2023
sandeepnRES pushed a commit to rwat17/cactus that referenced this issue Jun 16, 2023
@petermetz petermetz changed the title Problem with npm run custom-checks ci(custom-checks): fix sibling pkg dependency version inconsistencies Jun 16, 2023
@petermetz petermetz self-assigned this Jun 16, 2023
petermetz pushed a commit to rwat17/cactus that referenced this issue Jun 17, 2023
I also snuck in a couple of additional changes in the interest of speeding
up CI execution as soon as possible. Apologies for the intrusion!
- Peter Somogyvari

The additional changes are:
1. Comment out (e.g. disable) the odap-hermes plugin's tests for now
since they are completely broken anyway and just wasting CI resources.
2. Fixed a logging bug in the custom-checks .ts script
3. Modified the ci.sh file (the workhorse of the CI) so that it does
run the custom-checks as part of it. This was made possible by the
change that this commit is originally intended to do (e.g., without
this change the custom checks would fail but now they pass)

Closes: hyperledger-cacti#2431

Co-authored-by: Peter Somogyvari <[email protected]>

Signed-off-by: Peter Somogyvari <[email protected]>
Signed-off-by: Tomasz Awramski <[email protected]>
sandeepnRES pushed a commit that referenced this issue Jun 17, 2023
I also snuck in a couple of additional changes in the interest of speeding
up CI execution as soon as possible. Apologies for the intrusion!
- Peter Somogyvari

The additional changes are:
1. Comment out (e.g. disable) the odap-hermes plugin's tests for now
since they are completely broken anyway and just wasting CI resources.
2. Fixed a logging bug in the custom-checks .ts script
3. Modified the ci.sh file (the workhorse of the CI) so that it does
run the custom-checks as part of it. This was made possible by the
change that this commit is originally intended to do (e.g., without
this change the custom checks would fail but now they pass)

Closes: #2431

Co-authored-by: Peter Somogyvari <[email protected]>

Signed-off-by: Peter Somogyvari <[email protected]>
Signed-off-by: Tomasz Awramski <[email protected]>
barnapa pushed a commit to barnapa/cacti that referenced this issue Jun 22, 2023
I also snuck in a couple of additional changes in the interest of speeding
up CI execution as soon as possible. Apologies for the intrusion!
- Peter Somogyvari

The additional changes are:
1. Comment out (e.g. disable) the odap-hermes plugin's tests for now
since they are completely broken anyway and just wasting CI resources.
2. Fixed a logging bug in the custom-checks .ts script
3. Modified the ci.sh file (the workhorse of the CI) so that it does
run the custom-checks as part of it. This was made possible by the
change that this commit is originally intended to do (e.g., without
this change the custom checks would fail but now they pass)

Closes: hyperledger-cacti#2431

Co-authored-by: Peter Somogyvari <[email protected]>

Signed-off-by: Peter Somogyvari <[email protected]>
Signed-off-by: Tomasz Awramski <[email protected]>
sandeepnRES pushed a commit to sandeepnRES/cacti that referenced this issue Dec 21, 2023
I also snuck in a couple of additional changes in the interest of speeding
up CI execution as soon as possible. Apologies for the intrusion!
- Peter Somogyvari

The additional changes are:
1. Comment out (e.g. disable) the odap-hermes plugin's tests for now
since they are completely broken anyway and just wasting CI resources.
2. Fixed a logging bug in the custom-checks .ts script
3. Modified the ci.sh file (the workhorse of the CI) so that it does
run the custom-checks as part of it. This was made possible by the
change that this commit is originally intended to do (e.g., without
this change the custom checks would fail but now they pass)

Closes: hyperledger-cacti#2431

Co-authored-by: Peter Somogyvari <[email protected]>

Signed-off-by: Peter Somogyvari <[email protected]>
Signed-off-by: Tomasz Awramski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file Developer_Experience good-first-issue Good for newcomers good-first-issue-100-introductory Hacktoberfest Hacktoberfest participants are welcome to take a stab at issues marked with this label. P2 Priority 2: High
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants