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

feat(pli): add support for persistent config #1907

Merged
merged 12 commits into from
May 28, 2024

Conversation

Oppen
Copy link
Contributor

@Oppen Oppen commented May 10, 2024

  • feat(pli): configure DB via env var
  • feat(pli): envfile loading
  • feat: add config file example
  • feat(pli): add config command and support for updating the config with it

What ❔

Add configuration file and edition support to the prover CLI.

Why ❔

To avoid requiring manually passing all prover parameters every time.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.
  • Spellcheck has been run via zk spellcheck.

Oppen added 4 commits May 14, 2024 16:53
Load environment variables from file. Defaults to reading them from
`$ZKSYNC_HOME/etc/pliconfig`, overridable via the `PLI__CONFIG`
variable.
The parser is intentionally simple and permissive. It will simply not
load anything from lines starting with `#` (considered a comment) or not
containing an `=`.
Everything else is loaded into the environment with everything to the
left of `=` used as key and everything to the right of `=` used as value.
@Oppen Oppen force-pushed the feat/pli_config_cmd branch from 63f1b29 to 5b688db Compare May 14, 2024 19:57
@Artemka374 Artemka374 enabled auto-merge May 27, 2024 09:36
Copy link
Contributor

@ColoCarletti ColoCarletti left a comment

Choose a reason for hiding this comment

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

LGTM!

@Artemka374 Artemka374 added this pull request to the merge queue May 28, 2024
Merged via the queue into matter-labs:main with commit 9d5631c May 28, 2024
27 checks passed
github-merge-queue bot pushed a commit that referenced this pull request May 30, 2024
🤖 I have created a release *beep* *boop*
---


##
[14.4.0](prover-v14.3.0...prover-v14.4.0)
(2024-05-30)


### Features

* Make house keeper emit correct protocol version
([#2062](#2062))
([a58a7e8](a58a7e8))
* **pli:** add support for persistent config
([#1907](#1907))
([9d5631c](9d5631c))
* Protocol semantic version
([#2059](#2059))
([3984dcf](3984dcf))
* **prover:** Add `prover_version` binary.
([#2089](#2089))
([e1822f6](e1822f6))


### Bug Fixes

* fix null protocol version error
([#2094](#2094))
([aab3a7f](aab3a7f))
* fix query for proof compressor metrics
([#2103](#2103))
([d23d24e](d23d24e))
* **prover_dal:** fix `save_prover_protocol_version` query
([#2096](#2096))
([d8dd1ae](d8dd1ae))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: perekopskiy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants