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

Release/1.8.1 #5577

Merged
merged 6 commits into from Nov 10, 2022
Merged

Release/1.8.1 #5577

merged 6 commits into from Nov 10, 2022

Conversation

jdevcs
Copy link
Contributor

@jdevcs jdevcs commented Oct 28, 2022

Fixed

Changed

@jdevcs jdevcs added Release 1.x 1.0 related issues labels Oct 28, 2022
@jdevcs jdevcs requested a review from a team October 28, 2022 12:31
@jdevcs jdevcs self-assigned this Oct 28, 2022
@coveralls
Copy link

coveralls commented Oct 28, 2022

Pull Request Test Coverage Report for Build 3438017874

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 269 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+2.3%) to 74.555%

Files with Coverage Reduction New Missed Lines %
packages/web3-core-requestmanager/src/jsonrpc.js 2 64.29%
packages/web3-core-helpers/src/formatters.js 8 84.3%
packages/web3-core-helpers/src/errors.js 29 1.56%
packages/web3-utils/src/soliditySha3.js 34 3.43%
packages/web3-utils/src/index.js 40 40.3%
packages/web3-utils/src/utils.js 45 10.67%
packages/web3-eth-accounts/src/index.js 111 23.05%
Totals Coverage Status
Change from base Build 3419711499: 2.3%
Covered Lines: 3281
Relevant Lines: 4145

💛 - Coveralls

@jdevcs
Copy link
Contributor Author

jdevcs commented Oct 28, 2022

As part of the RC process, following test installations are performed in other projects and running their tests to see if everything.

  • installs properly
  • builds
  • tests pass

(This list will be actively edited)

Project Desc Status
oz-test-helpers Test utils. Subset of their suite is web3 contracts
synthetix ~1000 units

@jdevcs jdevcs marked this pull request as ready for review October 28, 2022 13:31
@jdevcs
Copy link
Contributor Author

jdevcs commented Oct 28, 2022

@Muhammad-Altabba and @luu-alex , Could you check Synthetix & OZ tests and update table above. Thanks

@luu-alex
Copy link
Contributor

luu-alex commented Oct 31, 2022

Project Desc Status
[oz-test-helpers][1] Test utils. Subset of their suite is web3 contracts
[synthetix][2] ~1000 units

oz-test-helpers passed with no errors, synthetix tests had no new errors.
looks good

@nikoulai nikoulai self-requested a review November 7, 2022 12:36
@Muhammad-Altabba
Copy link
Contributor

@Muhammad-Altabba and @luu-alex , Could you check Synthetix & OZ tests and update table above. Thanks

Cloning oz-test-helpers and linking to this version of web3 produced the following new error:

  1) Contract: balance
       current
         returns the current balance of an account as a BN in a specified unit:
     Error: Invalid character
      at assert (/home/maltabba/repos/web3v1.x/node_modules/bn.js/lib/bn.js:6:21)
      at parseBase (/home/maltabba/repos/web3v1.x/node_modules/bn.js/lib/bn.js:274:7)
      at BN._parseBase (/home/maltabba/repos/web3v1.x/node_modules/bn.js/lib/bn.js:298:14)
      at BN.init [as _init] (/home/maltabba/repos/web3v1.x/node_modules/bn.js/lib/bn.js:105:14)
      at new BN (/home/maltabba/repos/web3v1.x/node_modules/bn.js/lib/bn.js:39:12)
      at new BNwrapped (/home/maltabba/repos/web3v1.x/packages/web3-utils/lib/utils.js:480:16)
      at Object.balanceCurrent [as current] (src/balance.js:40:10)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at Context.<anonymous> (test/src/balance.test.js:17:14)

However, there are other 2 errors that are shown with both this RC and the previous versions (checked with 1.8.0 and 1.2.5). Those errors are:

  2) expectRevert
       assertion
         rejects an outOfGas:
     AssertionError: expect.fail()
      at assertFailure (test/helpers/assertFailure.js:9:10)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at Context.<anonymous> (test/src/expectRevert.test.js:123:7)

  3) expectRevert
       outOfGas
         accepts an outOfGas:

      Wrong kind of exception received
      + expected - actual

      -Transaction: 0xafa2b1b036c974b23e8c76ce348a4e17eca272f767490372ae9df5c634823e57 exited with an error (status 0) after consuming all gas.
      -     Please check that the transaction:
      -     - satisfies all conditions set by Solidity `assert` statements.
      -     - has enough gas to execute the full transaction.
      -     - does not trigger an invalid opcode by other means (ex: accessing an array out of bounds).
      +out of gas
      
      at expectException (src/expectRevert.js:20:30)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at Context.<anonymous> (test/src/expectRevert.test.js:153:7)

I am using the last version of Ganache.

@luu-alex Did you face similar issues

@luu-alex
Copy link
Contributor

luu-alex commented Nov 8, 2022

@Muhammad-Altabba I believe its similar, the contract: balance failing test persists 1.8.0 and 1.8.1 rc and might need investigation next update

Running against openzeppelin tests with 1.8.1 rc:


  253 passing (2m)
  2 failing

  1) Contract: balance
       current
         returns the current balance of an account as a BN in a specified unit:
     Error: Invalid character
      at assert (node_modules/web3-utils/node_modules/bn.js/lib/bn.js:6:21)
      at parseBase (node_modules/web3-utils/node_modules/bn.js/lib/bn.js:274:7)
      at BN._parseBase (node_modules/web3-utils/node_modules/bn.js/lib/bn.js:298:14)
      at BN.init [as _init] (node_modules/web3-utils/node_modules/bn.js/lib/bn.js:105:14)
      at new BN (node_modules/web3-utils/node_modules/bn.js/lib/bn.js:39:12)
      at new BNwrapped (node_modules/web3-utils/lib/utils.js:480:16)
      at Object.balanceCurrent [as current] (src/balance.js:33:10)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at Context.<anonymous> (test/src/balance.test.js:20:19)

  2) expectRevert
       "before each" hook for "rejects if no revert occurs":
     Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/alexluu/openzeppelin-test-helpers/test/src/expectRevert.test.js)
      at listOnTimeout (node:internal/timers:559:17)
      at processTimers (node:internal/timers:502:7)

Running against 1.8.0 open zeppelin

 274 passing (1m)
  1 failing

  1) Contract: balance
       current
         returns the current balance of an account as a BN in a specified unit:
     Error: Invalid character
      at assert (node_modules/web3-utils/node_modules/bn.js/lib/bn.js:6:21)
      at parseBase (node_modules/web3-utils/node_modules/bn.js/lib/bn.js:274:7)
      at BN._parseBase (node_modules/web3-utils/node_modules/bn.js/lib/bn.js:298:14)
      at BN.init [as _init] (node_modules/web3-utils/node_modules/bn.js/lib/bn.js:105:14)
      at new BN (node_modules/web3-utils/node_modules/bn.js/lib/bn.js:39:12)
      at new BNwrapped (node_modules/web3-utils/lib/utils.js:480:16)
      at Object.balanceCurrent [as current] (src/balance.js:33:10)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at Context.<anonymous> (test/src/balance.test.js:20:19)

@jdevcs jdevcs changed the title Release/1.8.1-rc.0 Release/1.8.1 Nov 10, 2022
@jdevcs jdevcs mentioned this pull request Nov 10, 2022
@jdevcs
Copy link
Contributor Author

jdevcs commented Nov 10, 2022

@Muhammad-Altabba I believe its similar, the contract: balance failing test persists 1.8.0 and 1.8.1 rc and might need investigation next update

These tests should be investigated in next release #5609

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x 1.0 related issues Release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants