-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Some issues and threads #358
Changes from 27 commits
8844364
ad3ee7a
a583693
8431737
68a4e34
23c89cb
3d439fe
8a05fad
291bc2a
1109054
e7247af
f99693a
aba4372
e8b4674
c8cb4f1
1d69551
48402b5
2c4e7c5
9cf891f
5114a28
f936c9c
9939b75
907291a
4a117d3
a1eabe4
9e714a0
bf3d677
e17318a
1f1e5f6
b0fe2ff
666719d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ jobs: | |
build: | ||
docker: | ||
# specify the version you desire here | ||
- image: circleci/node:10.13 | ||
- image: circleci/node:10.15 | ||
|
||
# Specify service dependencies here if necessary | ||
# CircleCI maintains a library of pre-built images | ||
|
@@ -32,20 +32,20 @@ jobs: | |
command: "greenkeeper-lockfile-update" | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- dependency-cache-{{ checksum "package.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- dependency-cache- | ||
#- restore_cache: | ||
# keys: | ||
# - dependency-cache-{{ checksum "package.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like we definitely won't want to enable this |
||
# - dependency-cache- | ||
|
||
- run: | ||
name: Bootstrapping packages | ||
command: npm run bootstrap | ||
|
||
- save_cache: | ||
paths: | ||
- ./node_modules | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
#- save_cache: | ||
# paths: | ||
# - ./node_modules | ||
# key: dependency-cache-{{ checksum "package.json" }} | ||
pcowgill marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- run: | ||
name: Running test suite | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10.13 | ||
10.15 |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ const development = { | |
}, | ||
}, | ||
events: { | ||
timeout: 2000, | ||
timeout: 4000, | ||
}, | ||
}; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,6 +108,10 @@ export class Action extends Subscription { | |
const baseEthersListener = async blockNumber => { | ||
try { | ||
const tx = await this.#tx; | ||
if (!tx) { | ||
console.log(`The action wasn't sent yet.`); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does this log statement in a dependency (our own) get handled with our removing log approach in the Tasit apps? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, I should have used the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yes, that's a good point that this should be If this is something that would prevent the tx from going through, then passing this back to the caller as an error so they can retry the tx and update the UI accordingly probably makes sense. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, just thought again about it: It's happening when an action starts to be listening before send it (the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, that's worth a test case I'm not sure if it's a situation to be ignored, though? Why would it be okay to ignore it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've wrote this test case: it("should be able to listen to an event before sending", async () => {
const confirmationListener = sinon.fake(async message => {
action.off("confirmation");
});
const errorListener = sinon.fake();
action = sampleContract.setValue(rand);
action.on("error", errorListener);
action.on("confirmation", confirmationListener);
await mineBlocks(provider, 2);
await action.send();
await action.waitForOneConfirmation();
await mineBlocks(provider, 2);
expect(confirmationListener.callCount).to.equal(1);
expect(errorListener.called).to.be.false;
}); That way, warn is being printed for each new block mined, I'm not sure if it's desirable.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I don't think so. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh ok - I forgot that the action not being sent yet was something we would want to happen sometimes. Based on that, what I said earlier:
...didn't make sense. So I'm glad you wrote this test as a way of clarifying how we would run into this scenario. Thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yep, this is an argument for moving it back to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Oh okay, great!
Oh remove it, not just change it to an |
||
return; | ||
} | ||
|
||
const receipt = await this.#provider.getTransactionReceipt(tx.hash); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, are you sure we want to disable the cache?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, just saw this comment:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we consider downgrading that package instead? Will we be able to re-enable caching at any point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can downgrade
truffle-hdwallet-provider
package or try to re-enable in the future.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What in the error message indicated to you that it was realted to
truffle-hdwallet-provider
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The results you shared are convincing - I think lerna's docs are wrong, then. Because it says that it hoists "shared" dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made this issue on the lerna repo lerna/lerna#2062
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get it.
tasit-action
is usingtasit-contracts
to resolve contracts ABI/address andtasit-account
as devDependency to accesscreateFromPrivateKey
helper.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue to enable cache in future: #359
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. So why aren't they hoisted like all of our other deps?