-
Notifications
You must be signed in to change notification settings - Fork 13
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
Submodule conversion #89
Conversation
|
c9bf54c
to
a1b9999
Compare
a1b9999
to
a452ede
Compare
.github/workflows/rust-checks.yml
Outdated
execute_and_check: | ||
name: Generate registry and Check for Diffs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- name: Generate registry | ||
run: cargo run | ||
env: | ||
RUST_LOG: info | ||
working-directory: tools/compiler | ||
- name: Check for Uncommitted Changes | ||
run: git diff --exit-code | ||
working-directory: tools/compiler |
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.
Allows us now to ensure folks are properly running the script and not doing manual edits
npm/package.json
Outdated
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.
Cutting a new release for consumers using bundled registries
@@ -1,4 +1,4 @@ | |||
import * as Deimos8 from '../../registry/chains/penumbra-testnet-deimos-8.json'; | |||
import * as Deimos8 from '../../registry/chains/penumbra-testnet-deimos-8-x6de97e39.json'; |
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.
It looks like the penumbra-testnet-deimos-8.json
has been removed from the inputs. To pass the test, these need to be updated.
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.
Related to #73, last time L and I were debugging. IIRC we were surprised to see that the relevant codepaths were dropping the -x6de97e39
and trying to import the suffix-less JSON file, which is not what I wanted. I suspect this is still an issue, but we can follow up and file if testing surfaces it again.
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.
Discussed offline: made an update to the chain id swapping logic to only do so if the exact match fails
registry/chains/penumbra-1.json
Outdated
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.
Diff due to pulling from the latest commit from the cosmos registry
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 don't think anyone is depending on this (?). But the input that generates this seems to have been deleted a while ago.
futures = "0.3.30" | ||
serde = { version = "1.0.204", features = ["derive"] } | ||
serde_json = "1.0.120" | ||
regress = "0.10.0" | ||
reqwest = { version = "0.12.5", features = ["json"] } | ||
tempdir = "0.3.7" | ||
thiserror = "1.0.63" | ||
tokio = { version = "1.39.1", features = ["full"] } |
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.
No longer requiring async libs
e3e2265
to
000b796
Compare
Applies yamllint reccos and updates to latest version of the 'checkout' action.
Moves out of the Rust "src/" dir because they're not source code files. Updates references accordingly.
6f8efd9
to
eadfd75
Compare
Tacked on a few nice-to-haves: yaml linting, more logging, and 🚨 moved the submodule from |
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.
Long overdue, very usable, thank you!
Closes #5
Closes #85
The initial motivation to use http requests has proven to be more finicky than hoped for. It introduces failure possibility during runtime when the submodule strategy pulls those issues in only after the cosmos registry dep is updated. This will allow us to have deterministic builds for the current commit and worry less about the
cargo run
command failing when we are trying to add another chain id. The downside is that it requires 150mb download when pulling down for the first time.