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

Mark LoggingSpec pending on macOS to alleviate timeouts #2709

Merged
merged 2 commits into from
Jun 15, 2021

Conversation

Anviking
Copy link
Member

@Anviking Anviking commented Jun 11, 2021

Issue Number

ADP-970

Overview

  • Mark LoggingSpec pending on macOS

@Anviking Anviking force-pushed the anviking/ADP-970/rm-LoggingSpec branch from c795177 to 5e271a5 Compare June 11, 2021 19:09
@Anviking Anviking self-assigned this Jun 11, 2021
@Anviking
Copy link
Member Author

bors try

iohk-bors bot added a commit that referenced this pull request Jun 11, 2021
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 11, 2021

try

Build succeeded:

Copy link
Contributor

@rvl rvl left a comment

Choose a reason for hiding this comment

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

I originally thought we should remove the entire spec as you have done, but then @piotr-iohk reminded me that there are some useful tests such as those checking that sensitive data is not logged.

If it's a problem only on macOS but not at all on Linux, then that's a possible concern, and we should investigate a little bit.

Otherwise, how about adding a pendingOnMacOS function to Test.Utils? And/or removing the worst-offending tests, if there are such tests?

@Anviking Anviking force-pushed the anviking/ADP-970/rm-LoggingSpec branch 2 times, most recently from fc2c57a to d2e8268 Compare June 14, 2021 10:39
@Anviking Anviking changed the title Try removing LoggingSpec to alleviate macOS unit timeouts Mark LoggingSpec pending on macOS to alleviate timeouts Jun 14, 2021
@Anviking Anviking force-pushed the anviking/ADP-970/rm-LoggingSpec branch from d2e8268 to b5a55db Compare June 14, 2021 10:43
This might help reduce the unit test timeouts on macOS hydra builds.

Investigating #2472 Jonathan found the following tests to fail with limited ulimit -v:
    36% Match String: "Checkpoint"
    44% Match String: "correct time measures"
   100% Match String: "different request ids"
    20% Match String: "Private Key"
    32% Match String: "Tx History"
    28% Match String: "Wallet Metadata"

where entries 2 and 3 are from LogginsSpec.

The timeouts in CI were in these following locations:

  12 times (28%) 000000 // from "Not Allowed Methods"
  9 times (21%) Checkpoint
  8 times (19%) rollback
  5 times (12%) 8601 // from e.g. "ISO 8601 extended format without timezones"
  4 times (9%) JSON
  4 times (9%) MVar
  4 times (9%) readStakeDistribution // only in the past, so now fixed
  1 times (2%) Coverage

which either suggest there are an 10+ lines of output not shown in the
output, or the LoggingSpec isn't to blame.

So it would be very interesting to see whether this commit reduces
timeouts or not.
@Anviking Anviking force-pushed the anviking/ADP-970/rm-LoggingSpec branch from b5a55db to 127d785 Compare June 14, 2021 10:44
@Anviking
Copy link
Member Author

bors try

iohk-bors bot added a commit that referenced this pull request Jun 14, 2021
@Anviking
Copy link
Member Author

Anviking commented Jun 14, 2021

Otherwise, how about adding a pendingOnMacOS function to Test.Utils?

Done.

worst-offending tests, if there are such tests?

I think @jonathanknowles's investigation would suggest the properties are the worst-offending tests, but this is not at all clear from the CI logs. I marked the whole of LoggingSpec pending on macOS to be sure. (If we see that this reduces timeouts, we could try un-mark some of them later.)

@Anviking Anviking requested a review from rvl June 14, 2021 11:36
@Anviking
Copy link
Member Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 14, 2021
2709: Mark LoggingSpec pending on macOS to alleviate timeouts r=Anviking a=Anviking

# Issue Number

<!-- Put here a reference to the issue that this PR relates to and which requirements it tackles. Jira issues of the form ADP- will be auto-linked. -->

ADP-970


# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] Mark LoggingSpec pending on macOS


Co-authored-by: Johannes Lund <[email protected]>
@Anviking
Copy link
Member Author

Anviking commented Jun 14, 2021

https://hydra.iohk.io/build/6660598
Another non-unit test timeout - probably related to this

deleting '/nix/store/30jzd3cxgvnwh90230cdppl32r6kil63-lsp-lib-lsp-1.2.0.0'
deleting '/nix/store/j7j4886753kp7gx5sm7z3gi20x643v4k-lsp-lib-lsp-1.2.0.0-ghc-8.10.5-env'
deleting '/nix/store/hncwhl41ayjr1ln0naqzm4kq531w5rv5-lsp-lib-lsp-1.2.0.0-config'
deleting '/nix/store/0k501d4bn65zz2mw2xw6vcf2ypsg136k-lsp-types-lib-lsp-types-1.2.0.0-ghc-8.10.5-env'
deleting '/nix/store/5l9b69fimjzcqknrmwi1jxnbw0lmc987-lsp-types-lib-lsp-types-1.2.0.0'
deleted or invalidated more than 20024074240 bytes; stopping
deleting '/nix/store/trash'
error (ignored): chmod '/nix/store/trash/vwsf9k289lk5gl5kxbs067cd7iib1vrv-hls-brittany-plugin-lib-hls-brittany-plugin-1.0.0.1-ghc-8.10.5-env/exactDeps/ghc-boot-th': No such file or directory
building of '/nix/store/p148a9y1sjn71zxqc3q0xpj10in2vy21-cardano-wallet-core-lib-cardano-wallet-core-2021.6.11' timed out after 900 seconds of silence

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 14, 2021

Build failed:

     POST /wallets/0000000000000000000000000000000000000000/utxo
     PATCH /wallets/0000000000000000000000000000000000000000/utxo
     DELETE /wallets/0000000000000000000000000000000000000000/utxo
     CONNECT /wallets/0000000000000000000000000000000000000000/utxo
     TRACE /wallets/0000000000000000000000000000000000000000/utxo
     OPTIONS /wallets/0000000000000000000000000000000000000000/utxo
Cardano.Wallet.DB.MVar
  MVar
    Extra Properties about DB initialization
building of '/nix/store/4zqiijx4m80ng6sgmcchcnfjzm76415j-cardano-wallet-core-test-unit-2021.6.11-check' timed out after 900 seconds of silence

#2472 (macOS)

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 14, 2021

try

Build failed:

@Anviking
Copy link
Member Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 14, 2021
2709: Mark LoggingSpec pending on macOS to alleviate timeouts r=Anviking a=Anviking

# Issue Number

<!-- Put here a reference to the issue that this PR relates to and which requirements it tackles. Jira issues of the form ADP- will be auto-linked. -->

ADP-970


# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] Mark LoggingSpec pending on macOS


Co-authored-by: Johannes Lund <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 14, 2021

Build failed:

  CONNECT /wallets/0000000000000000000000000000000000000000/transactions/0000000000000000000000000000000000000000000000000000000000000000
     TRACE /wallets/0000000000000000000000000000000000000000/transactions/0000000000000000000000000000000000000000000000000000000000000000
     OPTIONS /wallets/0000000000000000000000000000000000000000/transactions/0000000000000000000000000000000000000000000000000000000000000000
     PUT /wallets/0000000000000000000000000000000000000000/utxo
     POST /wallets/0000000000000000000000000000000000000000/utxo
     PATCH /wallets/0000000000000000000000000000000000000000/utxo
     DELETE /wallets/0000000000000000000000000000000000000000/utxo
     CONNECT /wallets/0000000000000000000000000000000000000000/utxo
     TRACE /wallets/0000000000000000000000000000000000000000/utxo
     OPTIONS /wallets/0000000000000000000000000000000000000000/utxo
Cardano.Wallet.DB.MVar
  MVar
    Extra Properties about DB initialization
building of '/nix/store/czslwg0i71q5j3jsmfga13aph1dqv0rm-cardano-wallet-core-test-unit-2021.6.11-check' timed out after 900 seconds of silence

#2472

@Anviking
Copy link
Member Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 15, 2021
2709: Mark LoggingSpec pending on macOS to alleviate timeouts r=Anviking a=Anviking

# Issue Number

<!-- Put here a reference to the issue that this PR relates to and which requirements it tackles. Jira issues of the form ADP- will be auto-linked. -->

ADP-970


# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] Mark LoggingSpec pending on macOS


Co-authored-by: Johannes Lund <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 15, 2021

Build failed:

Completed 8 action(s).
--
&nbsp; | /tmp/stack-cec31295fc21ac5c/test-ghc-env: openBinaryFile: resource busy (file is locked)
&nbsp; | &nbsp;
&nbsp; | /tmp/stack-cec31295fc21ac5c/test-ghc-env: openBinaryFile: resource busy (file is locked)
&nbsp; | &nbsp;
&nbsp; | /tmp/stack-cec31295fc21ac5c/test-ghc-env: openBinaryFile: resource busy (file is locked)
&nbsp; | error: Command exited with code 1!
&nbsp; | Continuing...

#2657

@Anviking
Copy link
Member Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 15, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit a080bd0 into master Jun 15, 2021
@iohk-bors iohk-bors bot deleted the anviking/ADP-970/rm-LoggingSpec branch June 15, 2021 12:30
@Anviking Anviking mentioned this pull request Jun 22, 2021
1 task
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.

2 participants