-
Notifications
You must be signed in to change notification settings - Fork 451
Fix invalid eth_simulate schema #675
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
Conversation
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 blocker for us merging https://github.com/ethereum/execution-apis/pull/670/files is that CI currently appears to be broken and the checker appears to be checking main
when run on PR rather than checking the PR. This means any change that breaks CI will pass until after it is merged, and then everything will fail (including PRs that fix the bug like #670) until main
has a fix.
We can ignore this and merge #670 so the checker stops failing for every PR, but we were hoping to wait until CI was fixed so our PR could be properly checked before merging.
That being said, this PR is somehow passing the checker, which surprises me and I'm not sure why that would be. Perhaps because the PR was authored by a contributor while #670 is authored by a non-contributor and permissions on the run are causing it to run differently?
Either way, I recommend merging #670 prior to this, and removing the changes related to eth_simulateV1
from this PR.
@MicahZoltu I don't think there are different permissions for running the PRs. When I verify if #670 passes Obviously you and the other people working on My preference would be to merge this so that CI is no longer broken, then separately if you want to change the implementation of eth_simulate to be more aligned with the original idea of the spec, that can be done. Otherwise our options are to revert the PR that merged eth_simulate and wait until the spec and tests are in harmony, or we if #670 can be fixed ASAP we could merge it instead. |
#484 was passing all checks at the time of merge. However, it does appear that it is correctly checking now. I propose you remove the That being said, I think both PRs have #675 (comment) wrong, which I don't know how to resolve (spec format question). |
Unfortunately in #484 it seems since @KillariDev hadn't previously landed a commit, so the CI tests were not running and only this GitGuardian action was running. I guess Felix didn't notice this before merging. Let me try to bring the changes from #670 here and then we can figure out deal with the types. |
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.
Thanks for the adjustments/fixes! I left one comment which should help clean things up, but not a blocker.
EthSimulateResult: | ||
title: Full results of multi call | ||
type: object | ||
oneOf: | ||
- $ref: '#/components/schemas/EthSimulateBlockResultInvalid' | ||
- $ref: '#/components/schemas/EthSimulateBlockResultSuccess' | ||
title: Full results of eth_simulate | ||
$ref: '#/components/schemas/EthSimulateBlockResultSuccess' | ||
EthSimulateBlockResultSuccess: |
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.
Can probably just delete EthSimulateResult
and rename EthSimulateResultSuccess
to EthSimulateResult
now?
EthSimulateResult: | |
title: Full results of multi call | |
type: object | |
oneOf: | |
- $ref: '#/components/schemas/EthSimulateBlockResultInvalid' | |
- $ref: '#/components/schemas/EthSimulateBlockResultSuccess' | |
title: Full results of eth_simulate | |
$ref: '#/components/schemas/EthSimulateBlockResultSuccess' | |
EthSimulateBlockResultSuccess: | |
EthSimulateResult: |
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 do that, but I would rather keep this minimal and refactor the naming / organization next. I want to generally drop the Eth
prefix on all the methods / types since it is self evident.
Fixes the issues that was causing CI to break. I see there are still some more issues in the same vein of what was fixed (particularly around the constant error codes), but will probably resolve those in a separate PR.