Conversation
plugins/transformerExporter.go
Outdated
| vow.StorageTransformerInitializer, | ||
| }, | ||
| []interface1.ContractTransformerInitializer{} | ||
| return []interface1.EventTransformerInitializer{yank.EventTransformerInitializer, bite.EventTransformerInitializer, cat_file_flip.EventTransformerInitializer, cat_file_vow.EventTransformerInitializer, jug_file_vow.EventTransformerInitializer, vat_fork.EventTransformerInitializer, vat_heal.EventTransformerInitializer, flop_kick.EventTransformerInitializer, vat_file_ilk.EventTransformerInitializer, vow_file.EventTransformerInitializer, flap_kick.EventTransformerInitializer, new_cdp.EventTransformerInitializer, log_value.EventTransformerInitializer, pot_file_dsr.EventTransformerInitializer, deal.EventTransformerInitializer, dent.EventTransformerInitializer, jug_drip.EventTransformerInitializer, jug_file_base.EventTransformerInitializer, vat_grab.EventTransformerInitializer, vat_move.EventTransformerInitializer, vow_fess.EventTransformerInitializer, pot_cage.EventTransformerInitializer, spot_file_mat.EventTransformerInitializer, spot_poke.EventTransformerInitializer, tick.EventTransformerInitializer, vat_frob.EventTransformerInitializer, vat_flux.EventTransformerInitializer, vat_fold.EventTransformerInitializer, cat_file_chop_lump.EventTransformerInitializer, spot_file_pip.EventTransformerInitializer, tend.EventTransformerInitializer, vat_init.EventTransformerInitializer, vat_slip.EventTransformerInitializer, flip_kick.EventTransformerInitializer, jug_file_ilk.EventTransformerInitializer, pot_file_vow.EventTransformerInitializer, vat_file_debt_ceiling.EventTransformerInitializer, vow_flog.EventTransformerInitializer, jug_init.EventTransformerInitializer, vat_suck.EventTransformerInitializer}, []interface1.StorageTransformerInitializer{cdp_manager.StorageTransformerInitializer, flop_storage.StorageTransformerInitializer, spot.StorageTransformerInitializer, jug.StorageTransformerInitializer, vow.StorageTransformerInitializer, bat_flip.StorageTransformerInitializer, eth_flip_a.StorageTransformerInitializer, vat.StorageTransformerInitializer, cat.StorageTransformerInitializer, flap_storage.StorageTransformerInitializer}, []interface1.ContractTransformerInitializer{} |
There was a problem hiding this comment.
I'm kind of in favor of having each of these transformer initializers on a new line so it's easier to see what has been included, though it does make the file a lot longer. 🤷♀ But, don't feel super strongly either way.
There was a problem hiding this comment.
Yeah happy to add line breaks- do y'all know a way to automate that? I just copied over the file generated by ./vulcanizedb compose
There was a problem hiding this comment.
Oh right it's the generated exporter, no idea. No biggie either.
| "log_value", | ||
| "pot_cage", | ||
| "pot_file_dsr", | ||
| "pot_file_vow", |
There was a problem hiding this comment.
What's this got to do with this PR? 🤔
There was a problem hiding this comment.
I think this PR just needs a rebase - these pot_file_vow changes were merged into staging already
elizabethengelman
left a comment
There was a problem hiding this comment.
LGTM! 💯
Mostly just questions out of curiosity.
| "log_value", | ||
| "pot_cage", | ||
| "pot_file_dsr", | ||
| "pot_file_vow", |
There was a problem hiding this comment.
I think this PR just needs a rebase - these pot_file_vow changes were merged into staging already
plugins/transformerExporter.go
Outdated
| vow.StorageTransformerInitializer, | ||
| }, | ||
| []interface1.ContractTransformerInitializer{} | ||
| return []interface1.EventTransformerInitializer{yank.EventTransformerInitializer, bite.EventTransformerInitializer, cat_file_flip.EventTransformerInitializer, cat_file_vow.EventTransformerInitializer, jug_file_vow.EventTransformerInitializer, vat_fork.EventTransformerInitializer, vat_heal.EventTransformerInitializer, flop_kick.EventTransformerInitializer, vat_file_ilk.EventTransformerInitializer, vow_file.EventTransformerInitializer, flap_kick.EventTransformerInitializer, new_cdp.EventTransformerInitializer, log_value.EventTransformerInitializer, pot_file_dsr.EventTransformerInitializer, deal.EventTransformerInitializer, dent.EventTransformerInitializer, jug_drip.EventTransformerInitializer, jug_file_base.EventTransformerInitializer, vat_grab.EventTransformerInitializer, vat_move.EventTransformerInitializer, vow_fess.EventTransformerInitializer, pot_cage.EventTransformerInitializer, spot_file_mat.EventTransformerInitializer, spot_poke.EventTransformerInitializer, tick.EventTransformerInitializer, vat_frob.EventTransformerInitializer, vat_flux.EventTransformerInitializer, vat_fold.EventTransformerInitializer, cat_file_chop_lump.EventTransformerInitializer, spot_file_pip.EventTransformerInitializer, tend.EventTransformerInitializer, vat_init.EventTransformerInitializer, vat_slip.EventTransformerInitializer, flip_kick.EventTransformerInitializer, jug_file_ilk.EventTransformerInitializer, pot_file_vow.EventTransformerInitializer, vat_file_debt_ceiling.EventTransformerInitializer, vow_flog.EventTransformerInitializer, jug_init.EventTransformerInitializer, vat_suck.EventTransformerInitializer}, []interface1.StorageTransformerInitializer{cdp_manager.StorageTransformerInitializer, flop_storage.StorageTransformerInitializer, spot.StorageTransformerInitializer, jug.StorageTransformerInitializer, vow.StorageTransformerInitializer, bat_flip.StorageTransformerInitializer, eth_flip_a.StorageTransformerInitializer, vat.StorageTransformerInitializer, cat.StorageTransformerInitializer, flap_storage.StorageTransformerInitializer}, []interface1.ContractTransformerInitializer{} |
There was a problem hiding this comment.
I'm kind of in favor of having each of these transformer initializers on a new line so it's easier to see what has been included, though it does make the file a lot longer. 🤷♀ But, don't feel super strongly either way.
|
|
||
| RUN apk --update --no-cache add make git g++ linux-headers | ||
| # DEBUG | ||
| RUN apk add busybox-extras |
There was a problem hiding this comment.
just out of curiosity - do you know what we need this package for in headerSync?
There was a problem hiding this comment.
Which package are you referring to? I removed busybox-extras bc it didn't seem necessary
There was a problem hiding this comment.
Yeah, busybox-extras - I just wasn't sure what it was even. But I'm up for ✂️ it if it's not needed.
There was a problem hiding this comment.
I think it's helpful tools for tinkering inside the container. May be worth re-adding if we're shing in there a lot to mess around, but I'm hoping we can set-it-and-forget-it with minimal interference
Dockerfile
Outdated
| WORKDIR /go/src/github.com/makerdao | ||
| RUN git clone https://github.com/makerdao/vulcanizedb.git | ||
| WORKDIR /go/src/github.com/makerdao/vulcanizedb | ||
| RUN git checkout v0.0.10 |
There was a problem hiding this comment.
I'm trying to think if we'd need any sort of change to our workflow with pointing at VDB staging, in case we make a change to VDB that's incompatible with mcd transformers. e.g. the situation we'd be in if sky-ecosystem/vulcanizedb#8 gets merged in before #52
There was a problem hiding this comment.
yeah good point. I think this should probably be pointing at a release once a new one is cut. Maybe it would make sense to add an arg that you pass at build time to specify the branch/release of vdb you want to target?
There was a problem hiding this comment.
👍 I like that idea.
|
|
||
| # setup environment | ||
| ENV GOPATH $HOME/go | ||
| ENV GO111MODULE on |
There was a problem hiding this comment.
how come we're able to remove these ENV variables? Don't we still need to make sure that the GOPATH is set properly, and go mods are on?
There was a problem hiding this comment.
Don't need them since we built the plugin in the builder container, so this container doesn't need to peruse the GOPATH or load modules
| # chown first so dir is writable | ||
| # note: using $USER is merged, but not in the stable release yet | ||
| COPY --chown=5000:5000 --from=builder /go/src/github.com/makerdao/vulcanizedb . | ||
| COPY --chown=5000:5000 --from=builder /go/src/github.com/makerdao/vdb-mcd-transformers /go/src/github.com/makerdao/vdb-mcd-transformers |
There was a problem hiding this comment.
also wondering how we're able to remove these lines, specifically why we're able to remove the --chown
There was a problem hiding this comment.
With the plugin already built, we don't need write access to create an .so file or assemble migrations
29b2f76 to
b133058
Compare
|
Wondering if this may require an update to the Docker README too? |
b133058 to
23705d9
Compare
Done 🎉 |
ba41e9e to
1bd9ff3
Compare
- Remove headerSync so it can run in a separate container
1bd9ff3 to
1dbc59b
Compare
This includes a change to point at vdb staging and makes associated changes to the deps, which is necessary to use the new storage repository interface. I'd be fine with cutting a new version of vdb whenever we're ready (potentially awaiting open PRs over there) and then updating things here accordingly.
When I run this locally with a config file that includes storage transformers but without a valid path to the CSV, "Waiting for to appear" spams the logs. Thinking that shouldn't be an issue when actually running this because you'd either include a valid path or turn off the storage transformers.