Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
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
56 changes: 56 additions & 0 deletions tests/data/pixi_build/log-example/failing/pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions tests/data/pixi_build/log-example/failing/pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[workspace]
channels = [
"https://prefix.dev/pixi-build-backends",
"https://prefix.dev/conda-forge",
]
platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"]
preview = ["pixi-build"]

[dependencies]
simple-app = { path = "." }

[tasks]
start = "simple-app"

[package]
name = "simple-app"
version = "0.1.0"

[package.build]
backend = { name = "pixi-build-rattler-build", version = "*" }
13 changes: 13 additions & 0 deletions tests/data/pixi_build/log-example/failing/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package:
name: simple-app
version: 0.1.0

build:
number: 0
script:
- echo Building package simple-app
- if: win
then:
- exit /b 1
else:
- exit 1
56 changes: 56 additions & 0 deletions tests/data/pixi_build/log-example/working/pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions tests/data/pixi_build/log-example/working/pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[workspace]
channels = [
"https://prefix.dev/pixi-build-backends",
"https://prefix.dev/conda-forge",
]
platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"]
preview = ["pixi-build"]

[dependencies]
simple-app = { path = "." }

[tasks]
start = "simple-app"

[package]
name = "simple-app"
version = "0.1.0"

[package.build]
backend = { name = "pixi-build-rattler-build", version = "*" }
8 changes: 8 additions & 0 deletions tests/data/pixi_build/log-example/working/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package:
name: simple-app
version: 0.1.0

build:
number: 0
script:
- echo Building package simple-app
54 changes: 54 additions & 0 deletions tests/integration_python/test_log.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import shutil
from pathlib import Path

from .common import ExitCode, verify_cli_command


def test_log_working_default(pixi: Path, build_data: Path, tmp_pixi_workspace: Path) -> None:
test_data = build_data.joinpath("log-example", "working")

shutil.copytree(test_data, tmp_pixi_workspace, dirs_exist_ok=True)

verify_cli_command(
[
pixi,
"install",
"--manifest-path",
tmp_pixi_workspace,
],
stderr_excludes="Building package simple-app",
)


def test_log_working_verbose(pixi: Path, build_data: Path, tmp_pixi_workspace: Path) -> None:
test_data = build_data.joinpath("log-example", "working")

shutil.copytree(test_data, tmp_pixi_workspace, dirs_exist_ok=True)

verify_cli_command(
[
pixi,
"install",
"--verbose",
"--manifest-path",
tmp_pixi_workspace,
],
stderr_contains="Building package simple-app",
)


def test_log_failing(pixi: Path, build_data: Path, tmp_pixi_workspace: Path) -> None:
test_data = build_data.joinpath("log-example", "failing")

shutil.copytree(test_data, tmp_pixi_workspace, dirs_exist_ok=True)

verify_cli_command(
[
pixi,
"install",
"--manifest-path",
tmp_pixi_workspace,
],
ExitCode.FAILURE,
stderr_contains="Building package simple-app",
)