Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Circle: Tenderly Integration #536

Merged
merged 2 commits into from
Mar 19, 2020

Conversation

sthompson22
Copy link
Contributor

Intro

On contract migration in Circle we're using the Tenderly CLI to push the newly deployed contracts to our Tenderly dashboard. This lets the folks at Tenderly associate transactions from our private networks, or ropsten with contracts and offer all the sweet insights they do.

What We Did

Circle Context / Access

A new Circle Context for TENDERLY_TOKEN. This is used with the tenderly login step and is required before we can push contracts. We've added hemidall@thesis.co to our Tenderly dashboard and are using the token for that account for Circle migrations. This token as push only access to the dashboard. Login info for Heimdalls account on Tenderly is in 1Password.

circleci-migrate-contracts.sh

We've added an additional step post contract migration that does tenderly login and tenderly push. You can see the output of our initial test on this job. If you're already logged in the login step doesn't fail, it just continues to push.

utility-box

Installed Tenderly via curl instructions here. There will be a follow up PR to integrate this install with utility-box setup, on the Terraform side. That should not block merging here though, I've manually installed the tool for now in both keep-dev and keep-test.

Sloan Thompson added 2 commits March 19, 2020 15:39
We can by-pass running tenderly init on every circle run by setting up
this basic tenderly config file.
Here we integrate tenderly push to the migration script.  We need to do
this from the utility box because that's where the truffle context and
contracts live.  We could probably try this in a separate Circle job
after the contract copyback, but I want to try with as few moving bits
as possible first.
Copy link
Contributor

@Shadowfiend Shadowfiend left a comment

Choose a reason for hiding this comment

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

Let's do it.

@Shadowfiend Shadowfiend merged commit 928f6be into master Mar 19, 2020
@Shadowfiend Shadowfiend deleted the sthompson22/circle/tenderly-push-integration branch March 19, 2020 20:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants