Problem:(CRO-574) integration test cannot run on linux#579
Problem:(CRO-574) integration test cannot run on linux#579bors[bot] merged 1 commit intocrypto-com:masterfrom
Conversation
|
you can activate integration test on linux , mac |
|
thanks @calvinaco @tomtau |
|
getting scripts' absolute path is necessary, |
integration-tests/prepare.sh
Outdated
| print_step "Cloning Tendermint config from \"${1}\" to \"${2}\"" | ||
|
|
||
| rm -rf "${2}" | ||
| sudo rm -rf "${2}" |
There was a problem hiding this comment.
in travis, it is no problem, because it's root.
so i added sudo for these commands.
There was a problem hiding this comment.
because in running,
./prepare.sh
it makes root owned file inside docker,
so external shell is normal user,
it cannot continue
There was a problem hiding this comment.
i didn't execute as root and it worked fine
There was a problem hiding this comment.
@calvinaco @calvinlauco is sudo really required?
There was a problem hiding this comment.
which folder did you run the script?
for me, i ran inside intergration_tests folder.
cd integrations-tests
./prepare.sh
for me, it always fails to compile
There was a problem hiding this comment.
doing sudo also seems overkill; maybe after each generated docker-data, try to change the ownership to the current user?
There was a problem hiding this comment.
agree, i will try different approach
Codecov Report
@@ Coverage Diff @@
## master #579 +/- ##
=======================================
Coverage 67.73% 67.73%
=======================================
Files 124 124
Lines 14785 14785
=======================================
Hits 10015 10015
Misses 4770 4770 |
tomtau
left a comment
There was a problem hiding this comment.
i don't think sudo should be required for running integration tests -- also, here sudo was inserted in front of rm -rf <some env variable> which looks dangerous, especially as there are no checks on if these environment variables were set properly
cebe902 to
d1ebf10
Compare
|
ok, i will find a way to bypass |
|
removed sudo, |
tomtau
left a comment
There was a problem hiding this comment.
seems ok -- can you squash the commits?
|
ok, i will |
4babf8b to
977f5e2
Compare
Solution: add fixes for linux fix env error add sudo add -- option add -- option remove sudo restore wallet client remove hdwallet test remove hdwallet test fix copy error
|
done! |
|
bors r+ |
579: Problem:(CRO-574) integration test cannot run on linux r=tomtau a=leejw51crypto Solution: add fixes for linux fix env error add sudo 580: Bump unicase from 2.5.1 to 2.6.0 r=tomtau a=dependabot-preview[bot] Bumps [unicase](https://github.com/seanmonstar/unicase) from 2.5.1 to 2.6.0. <details> <summary>Release notes</summary> *Sourced from [unicase's releases](https://github.com/seanmonstar/unicase/releases).* > ## v2.6.0 > - Fix `UniCase::eq` in Unicode mode so that it doesn't equal a substring of the other. > - Make crate `no_std`. </details> <details> <summary>Commits</summary> - [`7b116bc`](seanmonstar/unicase@7b116bc) v2.6.0 - [`c14856b`](seanmonstar/unicase@c14856b) Fix Unicode::eq to not equal when one side is a substring of the other ([#39](https://github-redirect.dependabot.com/seanmonstar/unicase/issues/39)) - [`4788cba`](seanmonstar/unicase@4788cba) update version_check - [`fbab380`](seanmonstar/unicase@fbab380) Implement no_std support ([#34](https://github-redirect.dependabot.com/seanmonstar/unicase/issues/34)) - See full diff in [compare view](seanmonstar/unicase@v2.5.1...v2.6.0) </details> <br /> [](https://dependabot.com/compatibility-score.html?dependency-name=unicase&package-manager=cargo&previous-version=2.5.1&new-version=2.6.0) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) </details> 584: Problem: client can't trust validators field in genesis api (CRO-101) r=tomtau a=yihuang Solution: Validate validators in ``RequestInitChain``, make sure the consistency. Co-authored-by: jongwhan lee <leejw51@gmail.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: yihuang <huang@crypto.com>
Build failed (retrying...) |
Build failed |
|
bors r+ |
Solution: add fixes for linux
fix env error
add sudo