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(Prover CLI): Configuration (with flag) #1861

Merged
merged 10 commits into from
May 8, 2024
Merged

Conversation

ilitteri
Copy link
Contributor

@ilitteri ilitteri commented May 6, 2024

What ❔

Adds the possibility to configure the DB URL. For now, we use a flag --db-url for passing it. If not passed it defaults to postgres://postgres:notsecurepassword@localhost/prover_local.

In the future, we should handle this differently, with an independent command config to set one or multiple configurations into a .pli-config file.

This also removes the need for the CLI to be run with zk f.

Why ❔

We need to offer the Prover CLI users to provide the DB URL to which they want to work. In addition, we want to get rid of the need for zk f to run the app.

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.
  • Linkcheck has been run via zk linkcheck.

ColoCarletti
ColoCarletti previously approved these changes May 7, 2024
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!

EmilLuta
EmilLuta previously approved these changes May 8, 2024
@EmilLuta EmilLuta enabled auto-merge May 8, 2024 13:28
This reverts commit a5be588.
auto-merge was automatically disabled May 8, 2024 16:33

Merge queue setting changed

@EmilLuta EmilLuta enabled auto-merge May 8, 2024 17:58
@EmilLuta EmilLuta added this pull request to the merge queue May 8, 2024
Merged via the queue into main with commit 620c880 May 8, 2024
26 of 27 checks passed
@EmilLuta EmilLuta deleted the prover_cli_config_flags branch May 8, 2024 18:18
RomanBrodetski pushed a commit that referenced this pull request May 11, 2024
🤖 I have created a release *beep* *boop*
---


##
[14.1.0](prover-v14.0.0...prover-v14.1.0)
(2024-05-11)


### Features

* **en:** Brush up EN observability config
([#1897](#1897))
([086f768](086f768))
* Extract several crates from zksync_core
([#1859](#1859))
([7dcf796](7dcf796))
* **Prover CLI:** Configuration (with flag)
([#1861](#1861))
([620c880](620c880))
* **Prover CLI:** Initial Docs
([#1862](#1862))
([8b094aa](8b094aa))
* **Prover CLI:** status l1 command
([#1706](#1706))
([8ddd039](8ddd039))
* prover components versioning
([#1660](#1660))
([29a4ffc](29a4ffc))


### Bug Fixes

* 1.5.0 + validium (contracts only) patches
([#1911](#1911))
([bf439f4](bf439f4))
* Update prover cargo lock
([#1896](#1896))
([2ca01f5](2ca01f5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

3 participants