Skip to content

test: fix assertion that replica has stopped running#1240

Closed
hansl wants to merge 10 commits intomasterfrom
hansl/fix-assertions
Closed

test: fix assertion that replica has stopped running#1240
hansl wants to merge 10 commits intomasterfrom
hansl/fix-assertions

Conversation

@hansl
Copy link
Contributor

@hansl hansl commented Dec 8, 2020

No description provided.

@hansl hansl requested a review from p-shahi December 8, 2020 18:20
assert_no_dfx_start_or_replica_processes() {
! ( ps | grep "[/[:space:]]dfx start" )
! ( ps | cat .dfx/replica-configuration/replica-pid )
! ( ps | grep "$(cat .dfx/replica-configuration/replica-pid)" )
Copy link

Choose a reason for hiding this comment

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

this grep looks for the pid anywhere, so if replica-pid contains 337 and there is a pid 1337 it will think everything is all good

assert_no_dfx_start_or_replica_processes() {
! ( ps | grep "[/[:space:]]dfx start" )
! ( ps | cat .dfx/replica-configuration/replica-pid )
.dfx/replica-configuration/replica-pid && (! ( ps | grep "$(cat .dfx/replica-configuration/replica-pid)" ))
Copy link

Choose a reason for hiding this comment

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

this grep looks for the pid anywhere, so if replica-pid contains 337 and there is a pid 1337 it will think everything is all good

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah you're right. I'm still exploring this.

Copy link
Contributor

@p-shahi p-shahi left a comment

Choose a reason for hiding this comment

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

changing approve back to req changes until this is fixed

@p-shahi
Copy link
Contributor

p-shahi commented Jan 29, 2021

addressed by #1338 therefore closing

@p-shahi p-shahi closed this Jan 29, 2021
@p-shahi p-shahi deleted the hansl/fix-assertions branch May 20, 2021 05:41
dfinity-bot added a commit that referenced this pull request May 12, 2022
## Changelog for advisory-db:
Branch: main
Commits: [rustsec/advisory-db@eb8c788b...ca1383b2](rustsec/advisory-db@eb8c788...ca1383b)

* [`30e1ac3c`](rustsec/advisory-db@30e1ac3) Create RUSTSEC-0000-0000.md ([RustSec/advisory-db⁠#1236](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/1236))
* [`7b009b96`](rustsec/advisory-db@7b009b9) Assigned RUSTSEC-2022-0023 to static_type_map ([RustSec/advisory-db⁠#1238](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/1238))
* [`0653c8f3`](rustsec/advisory-db@0653c8f) Self-report double-checked-cell as unmaintained ([RustSec/advisory-db⁠#1239](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/1239))
* [`ba96a137`](rustsec/advisory-db@ba96a13) Assigned RUSTSEC-2022-0024 to double-checked-cell ([RustSec/advisory-db⁠#1240](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/1240))
* [`ca1383b2`](rustsec/advisory-db@ca1383b) Withdraw RUSTSEC-2020-0159: unsound `localtime_r` call in `chrono` ([RustSec/advisory-db⁠#1241](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/1241))
mergify bot pushed a commit that referenced this pull request May 13, 2022
## Changelog for advisory-db:
Branch: main
Commits: [rustsec/advisory-db@eb8c788b...ca1383b2](rustsec/advisory-db@eb8c788...ca1383b)

* [`30e1ac3c`](rustsec/advisory-db@30e1ac3) Create RUSTSEC-0000-0000.md ([RustSec/advisory-db⁠#1236](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/1236))
* [`7b009b96`](rustsec/advisory-db@7b009b9) Assigned RUSTSEC-2022-0023 to static_type_map ([RustSec/advisory-db⁠#1238](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/1238))
* [`0653c8f3`](rustsec/advisory-db@0653c8f) Self-report double-checked-cell as unmaintained ([RustSec/advisory-db⁠#1239](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/1239))
* [`ba96a137`](rustsec/advisory-db@ba96a13) Assigned RUSTSEC-2022-0024 to double-checked-cell ([RustSec/advisory-db⁠#1240](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/1240))
* [`ca1383b2`](rustsec/advisory-db@ca1383b) Withdraw RUSTSEC-2020-0159: unsound `localtime_r` call in `chrono` ([RustSec/advisory-db⁠#1241](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/1241))
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