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

ci(iast): enable iast_aggregated_leak_testing tests #12005

Merged
merged 9 commits into from
Jan 22, 2025
13 changes: 7 additions & 6 deletions hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ fastapi = ["~=0.114.2"]

## ASM Appsec Aggregated Leak Testing

[envs.appsec_aggregated_leak_testing]
template = "appsec_aggregated_leak_testing"
[envs.iast_aggregated_leak_testing]
template = "iast_aggregated_leak_testing"
dependencies = [
"pytest",
"pytest-cov",
Expand All @@ -457,19 +457,20 @@ dependencies = [
"pydantic-settings",
]

[envs.appsec_aggregated_leak_testing.env-vars]
[envs.iast_aggregated_leak_testing.env-vars]
CMAKE_BUILD_PARALLEL_LEVEL = "12"
DD_IAST_ENABLED = "true"
_DD_IAST_PATCH_MODULES = "scripts.iast"

[envs.appsec_aggregated_leak_testing.scripts]
[envs.iast_aggregated_leak_testing.scripts]
test = [
"uname -a",
"pip freeze",
"python -m pytest tests/appsec/iast_aggregated_memcheck/test_aggregated_memleaks.py",
]

[[envs.appsec_aggregated_leak_testing.matrix]]
python = ["3.10", "3.11", "3.12", "3.13"]
[[envs.iast_aggregated_leak_testing.matrix]]
python = ["3.10", "3.11", "3.12"]



Expand Down
8 changes: 7 additions & 1 deletion tests/appsec/suitespec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,18 @@ suites:
- '@remoteconfig'
retry: 2
runner: hatch
iast_aggregated_leak_testing:
parallelism: 3
paths:
- '@appsec_iast'
- tests/appsec/iast_aggregated_memcheck/*
runner: hatch
timeout: 50m
appsec_iast_packages:
parallelism: 4
paths:
- '@appsec_iast'
- tests/appsec/iast_packages/*
retry: 2
runner: hatch
timeout: 50m
appsec_integrations_pygoat:
Expand Down
Loading