Skip to content
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

Replace resolution, superseded-by and replaces with withdrawal-reason. #4198

Merged
merged 5 commits into from
Oct 29, 2021

Conversation

axic
Copy link
Member

@axic axic commented Sep 22, 2021

This is mostly for discussion.

@MicahZoltu
Copy link
Contributor

Good discussion. You want to mark this as ready for review so we can merge it @axic?

@alita-moore
Copy link
Contributor

this a good test for the bot, btw; it supports multiple files now

@lightclient lightclient marked this pull request as ready for review October 20, 2021 15:27
@MicahZoltu MicahZoltu closed this Oct 20, 2021
@MicahZoltu MicahZoltu reopened this Oct 20, 2021
@eth-bot eth-bot enabled auto-merge (squash) October 20, 2021 15:28
@eth-bot
Copy link
Collaborator

eth-bot commented Oct 20, 2021

EIP file name must be eip-###.md

@alita-moore
Copy link
Contributor

-_-

@MicahZoltu
Copy link
Contributor

eip-1706.md:	unknown preamble field
eip-3338.md:	unknown preamble field
eip-3382.md:	unknown preamble field

@alita-moore Is this something you can fix? This is sfrom Travis CI, I'm not sure where the code for that lives. 😖

@alita-moore
Copy link
Contributor

most likely there are issues with the name of the headers

@lightclient
Copy link
Member

That's eipv, I can update it.

@alita-moore
Copy link
Contributor

i.e. withdrawal-reason is unknown

@alita-moore
Copy link
Contributor

one sec

This was referenced Oct 20, 2021
@MicahZoltu MicahZoltu closed this Oct 28, 2021
auto-merge was automatically disabled October 28, 2021 18:43

Pull request was closed

@MicahZoltu MicahZoltu reopened this Oct 28, 2021
@eth-bot eth-bot enabled auto-merge (squash) October 28, 2021 18:43
@MicahZoltu
Copy link
Contributor

@alita-moore The bot isn't liking this PR, and it isn't clear why from the error:

An Exception Occured While Linting: 
YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 4, column 152:
     ... entheses or triangular brackets): FirstName LastName (@GitHubUse ... 
                                         ^
Error: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 4, column 152:
     ... entheses or triangular brackets): FirstName LastName (@GitHubUse ... 
                                         ^
(node:1607) UnhandledPromiseRejectionWarning: YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 4, column 152:
     ... entheses or triangular brackets): FirstName LastName (@GitHubUse ... 
                                         ^
    at generateError (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:167:10)
    at throwError (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:173:9)
    at readBlockMapping (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1027:9)
    at composeNode (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1359:12)
    at readDocument (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1525:3)
    at loadDocuments (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1588:5)
    at load (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1614:19)
    at safeLoad (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1637:10)
    at parse (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/front-matter/index.js:64:20)
    at extractor (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/front-matter/index.js:26:12)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1607) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1607) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
eip-3338.md passed!
Error: Process completed with exit code 1.

Also, we should fix this so it isn't an unhandled rejection, we should be capturing the error itself rather than silently crashing the app and relying on the unhandled rejection handler noticing it.

Parsing breaks on it I think.
@alita-moore
Copy link
Contributor

@alita-moore The bot isn't liking this PR, and it isn't clear why from the error:

An Exception Occured While Linting: 
YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 4, column 152:
     ... entheses or triangular brackets): FirstName LastName (@GitHubUse ... 
                                         ^
Error: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 4, column 152:
     ... entheses or triangular brackets): FirstName LastName (@GitHubUse ... 
                                         ^
(node:1607) UnhandledPromiseRejectionWarning: YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 4, column 152:
     ... entheses or triangular brackets): FirstName LastName (@GitHubUse ... 
                                         ^
    at generateError (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:167:10)
    at throwError (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:173:9)
    at readBlockMapping (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1027:9)
    at composeNode (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1359:12)
    at readDocument (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1525:3)
    at loadDocuments (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1588:5)
    at load (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1614:19)
    at safeLoad (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/js-yaml/lib/js-yaml/loader.js:1637:10)
    at parse (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/front-matter/index.js:64:20)
    at extractor (/home/runner/work/_actions/ethereum/EIP-Bot/d627d305e33d8cdfe0310588ba74670d4a882600/node_modules/front-matter/index.js:26:12)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1607) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1607) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
eip-3338.md passed!
Error: Process completed with exit code 1.

Also, we should fix this so it isn't an unhandled rejection, we should be capturing the error itself rather than silently crashing the app and relying on the unhandled rejection handler noticing it.

Good idea. I'll standardize the error handling.

@MicahZoltu MicahZoltu merged commit 3cf5268 into ethereum:master Oct 29, 2021
@axic
Copy link
Member Author

axic commented Nov 2, 2021

Thanks all for getting this merged!

@axic axic deleted the eip-1-reason branch November 2, 2021 20:13
PhABC pushed a commit to PhABC/EIPs that referenced this pull request Jan 25, 2022
…-reason`. (ethereum#4198)

* 1: add the withdrawal-reason field to the preamble

* Drop all the deprecated header fields (replaces, superseded-by, resolution)

* update some EIPs

* Update some more EIPs

* Removes colon from template header data

Parsing breaks on it I think.

Co-authored-by: Micah Zoltu <micah@zoltu.net>
@axic axic mentioned this pull request Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants