Skip to content

feat(e2e): allow customizing genesis parameters on the manifest (backport #3969)#4312

Merged
cason merged 1 commit intov1.xfrom
cason/pr-3969-manual-backport-v1.x-2
Oct 20, 2024
Merged

feat(e2e): allow customizing genesis parameters on the manifest (backport #3969)#4312
cason merged 1 commit intov1.xfrom
cason/pr-3969-manual-backport-v1.x-2

Conversation

@cason
Copy link
Copy Markdown

@cason cason commented Oct 20, 2024

Closes #3961.

Similarly to #3967, introduces a new genesis field for manifest files. The format is key = value and multiple entries can be provided. For example,

genesis = [ 
    "consensus_params.evidence.max_bytes = 1000", 
    "chain_id = pr3969" 
]

After the genesis document is produced by the setup implementation of the runner, the provided genesis customized configurations are applied to the generated genesis file. The solution also uses viper, as it allows setting only some specific keys, leaving the pre-produced content untouched.

Note: this PR is based atop
#3964 for simplicity, but it does not need to.


This is an manual backport of pull request #3969.

PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

Closes #3961.

Similarly to #3967, introduces a new `genesis` field for manifest files.
The format is `key = value` and multiple entries can be provided. For
example,

```
genesis = [ 
    "consensus_params.evidence.max_bytes = 1000", 
    "chain_id = pr3969" 
]
```

After the genesis document is produced by the `setup` implementation of
the runner, the provided genesis customized configurations are applied
to the generated genesis file. The solution also uses `viper`, as it
allows setting only some specific keys, leaving the pre-produced content
untouched.

Note: this PR is based atop
#3964 for simplicity, but it
does not need to.

---

#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Andy Nogueira <me@andynogueira.dev>
@cason cason requested a review from a team as a code owner October 20, 2024 09:21
@cason cason requested a review from a team October 20, 2024 09:21
Copy link
Copy Markdown
Author

@cason cason left a comment

Choose a reason for hiding this comment

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

Diffs are identical. But I can't approve this PR :(

@cason cason changed the title feat(e2e): allow customizing genesis parameters on the manifest (#3969) feat(e2e): allow customizing genesis parameters on the manifest (backport #3969) Oct 20, 2024
@cason cason merged commit 3d7bfb0 into v1.x Oct 20, 2024
@cason cason deleted the cason/pr-3969-manual-backport-v1.x-2 branch October 20, 2024 10:57
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.

2 participants