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

Update testnet to 2.230.0 #1265

Merged
merged 14 commits into from
Aug 24, 2023
Merged

Update testnet to 2.230.0 #1265

merged 14 commits into from
Aug 24, 2023

Conversation

AdaJane
Copy link
Contributor

@AdaJane AdaJane commented Aug 22, 2023

Description of proposed changes


Practical tips for PR review & merge:

  • All GitHub Actions report PASS
  • Newly added code/functions have unit tests
    • Coverage tools report all newly added lines as covered
    • The positive scenario is exercised
    • Negative scenarios are exercised, e.g. assert on all possible errors
    • Assert on events triggered if applicable
    • Assert on changes made to storage if applicable
  • Modified behavior/functions - try to make sure above test items are covered
  • Integration tests are added if applicable/needed

atodorov and others added 11 commits August 22, 2023 15:23
older version panics when compiling creditcoin-transaction-producer,
this one seems to work
* add: replace getSeed with initKeyring funcs that support ecdsa

* implement initKeyring in bond

* implement initKeyring in show-address

* implement initKeyring in chill

* implement initKeyring in distribute-rewards

* implement initKeyring in send

* implement initKeyring in set-keys

* make --ecdsa a global flag

* implement initKeyring in unbond

* implement initKeyring in validate

* implementinitKeyring in withdraw

* implement initKeyring in wizard

* remove unused imports

* yarn format

* yarn format #2

* add ecdsa tests to integration-tests

* Auto-update creditcoin-js type definitions

* add CC_PK to camelCase exceptions

* remove unused import

* fix: was using older prettier version

* keep envVar consistent when using ecdsa

* add: ecdsa key validation

* update and split tests

* format *sigh*

* Auto-update creditcoin-js type definitions

* remove unused imports and vars

* add: randomTestAccount helper

* upgrade wizard test to cover ecdsa/phrase

* upgrade showAddress test to use randomTestAccount

* use randomTestAccount in send test

* export validateECDSAKey

* upgrade validatorCycle test to cover ecdsa

* fix: formatting, finally

* fix: bad params in prompt command

* Treat eslint warnings as errors & exit 1

things like unused imports are warnings and easlint will exit with 0
so we don't get to notice them!  This change will cause CI jobs to fail
so that we can notice these issues and fix them!

* Remove unused imports

* appease linter

* replace switch with if

Co-authored-by: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com>

---------

Co-authored-by: gluwa-bot <creditcoin@gluwa.com>
Co-authored-by: Alex Todorov <alex.todorov@gluwa.com>
Co-authored-by: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com>
Co-authored-by: Ada <>
Co-authored-by: gluwa-bot <creditcoin@gluwa.com>
Co-authored-by: Nathan Whitaker <nathan.whitaker01@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Aug 22, 2023

Codecov Report

Merging #1265 (f8a3f3d) into testnet (8a2beb5) will increase coverage by 0.27%.
The diff coverage is 38.37%.

@@             Coverage Diff             @@
##           testnet    #1265      +/-   ##
===========================================
+ Coverage    69.79%   70.06%   +0.27%     
===========================================
  Files          103      103              
  Lines        12016    12095      +79     
  Branches       112      114       +2     
===========================================
+ Hits          8386     8474      +88     
+ Misses        3621     3612       -9     
  Partials         9        9              
Files Changed Coverage Δ
runtime/src/version.rs 0.00% <ø> (ø)
scripts/cc-cli/src/commands/bond.ts 0.00% <0.00%> (ø)
scripts/cc-cli/src/commands/chill.ts 0.00% <0.00%> (ø)
scripts/cc-cli/src/commands/distributeRewards.ts 0.00% <0.00%> (ø)
scripts/cc-cli/src/commands/send.ts 0.00% <0.00%> (ø)
scripts/cc-cli/src/commands/setKeys.ts 0.00% <0.00%> (ø)
scripts/cc-cli/src/commands/showAddress.ts 0.00% <0.00%> (ø)
scripts/cc-cli/src/commands/unbond.ts 0.00% <0.00%> (ø)
scripts/cc-cli/src/commands/validate.ts 0.00% <0.00%> (ø)
scripts/cc-cli/src/commands/withdrawUnbonded.ts 0.00% <0.00%> (ø)
... and 8 more

... and 20 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

nathanwhit
nathanwhit previously approved these changes Aug 22, 2023
@github-actions
Copy link

For full LLVM coverage report click here!

pLabarta
pLabarta previously approved these changes Aug 22, 2023
Copy link
Contributor

@atodorov atodorov left a comment

Choose a reason for hiding this comment

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

test-migrations-via-try-runtime is failing with a panic - https://github.com/gluwa/creditcoin/actions/runs/5943172563/job/16118705103

that needs to be investigated before merging

@AdaJane AdaJane merged commit 7094909 into testnet Aug 24, 2023
78 of 85 checks passed
@AdaJane AdaJane deleted the update-testnet-2.230.0 branch August 24, 2023 02:43
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.

6 participants