Skip to content

Improve checkProposal script#564

Merged
eswak merged 4 commits intodevelopfrom
tooling/check-proposal-improvement
Jun 27, 2022
Merged

Improve checkProposal script#564
eswak merged 4 commits intodevelopfrom
tooling/check-proposal-improvement

Conversation

@eswak
Copy link
Contributor

@eswak eswak commented Mar 1, 2022

  • Add warning if setup() function is not empty
  • Add optional env variable READ_CR_ORACLE that reads CR oracle before & after, and prints the difference

Example of warning:
image

Example of CR oracle reading:
image

- Add warning if setup() function is not empty
- Add optional env variable READ_CR_ORACLE that reads CR oracle before & after, and prints the difference
@thomas-waite thomas-waite self-requested a review March 1, 2022 16:25
thomas-waite
thomas-waite previously approved these changes Mar 2, 2022
Copy link
Contributor

@thomas-waite thomas-waite left a comment

Choose a reason for hiding this comment

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

Really like this + the colours are great

xklob
xklob previously requested changes Mar 2, 2022
Copy link
Contributor

@xklob xklob left a comment

Choose a reason for hiding this comment

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

See comment about moving the func to a different file. Also not a huge fan of directly embedding color/terminal format strings in console logs, but should be fine as long as its not something we start doing everywhere.

process.exit(1);
});

function formatNumber(x) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move this out into a utils file somewhere? Would prefer to keep our checkproposal logic/file clean.

@xklob xklob marked this pull request as draft April 28, 2022 17:07
@eswak eswak marked this pull request as ready for review June 27, 2022 12:14
@eswak eswak requested a review from xklob June 27, 2022 12:39
@eswak eswak dismissed xklob’s stale review June 27, 2022 12:39

made the change

@eswak eswak merged commit e479d78 into develop Jun 27, 2022
@eswak eswak deleted the tooling/check-proposal-improvement branch June 27, 2022 12:40
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.

4 participants

Comments