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

chore: disable verbose compile for more consistent output stability #53

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ For pull requests and pushes to `main` branch against this repository the follow
- - `Algorand Python` smart contract unit tests, that are run using [`algorand-python-testing`](https://pypi.org/project/algorand-python-testing/), which are executed in a Python intepreter emulating major AVM behaviour
- - Python `ApplicationClient` tests that are run against `algokit localnet` and test the behaviour in a real network enviornment
- Smart contract artifacts are built
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
- Smart contract is deployed to a AlgoKit LocalNet instance

> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py`

#### Continuous Deployment

For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ For pull requests and pushes to `main` branch against this repository the follow
- Types are checked using [mypy](https://mypy-lang.org/)
- Typescript `ApplicationClient` tests against `algokit localnet` are executed using [jest](https://jestjs.io/)
- Smart contract artifacts are built
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
- Smart contract is deployed to a AlgoKit LocalNet instance

> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py`

#### Continuous Deployment

For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
4 changes: 3 additions & 1 deletion examples/production_python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ For pull requests and pushes to `main` branch against this repository the follow
- - `Algorand Python` smart contract unit tests, that are run using [`algorand-python-testing`](https://pypi.org/project/algorand-python-testing/), which are executed in a Python intepreter emulating major AVM behaviour
- - Python `ApplicationClient` tests that are run against `algokit localnet` and test the behaviour in a real network enviornment
- Smart contract artifacts are built
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
- Smart contract is deployed to a AlgoKit LocalNet instance

> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py`

#### Continuous Deployment

For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
1 change: 1 addition & 0 deletions examples/starter_python/smart_contracts/_helpers/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
4 changes: 3 additions & 1 deletion template_content/README.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,11 @@ For pull requests and pushes to `main` branch against this repository the follow
- Typescript `ApplicationClient` tests against `algokit localnet` are executed using [jest](https://jestjs.io/)
{%- endif %}
- Smart contract artifacts are built
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md)
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
- Smart contract is deployed to a AlgoKit LocalNet instance

> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py`

#### Continuous Deployment

For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:
Expand Down
1 change: 1 addition & 0 deletions template_content/smart_contracts/_helpers/build.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
contract_path.absolute(),
f"--out-dir={output_dir}",
"--output-arc32",
"--debug-level=0",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down