fixing for coderabbit and tests with stuck metadata

This commit is contained in:
Adam Outler
2026-01-06 13:56:37 +00:00
parent c86d0c8772
commit e6194564b8
4 changed files with 7 additions and 22 deletions

View File

@@ -33,24 +33,6 @@ services:
source: test_netalertx_data source: test_netalertx_data
target: /data target: /data
read_only: false read_only: false
- type: tmpfs
target: /tmp/log
tmpfs:
size: 64m
mode: 1777
options: noexec,nosuid,nodev,async,noatime,nodiratime
- type: tmpfs
target: /tmp/api
tmpfs:
size: 64m
mode: 1777
options: noexec,nosuid,nodev,async,noatime,nodiratime
- type: tmpfs
target: /tmp/run
tmpfs:
size: 64m
mode: 1777
options: noexec,nosuid,nodev,async,noatime,nodiratime
- type: volume - type: volume
source: test_system_services_active_config source: test_system_services_active_config
target: /tmp/nginx/active-config target: /tmp/nginx/active-config
@@ -58,6 +40,9 @@ services:
tmpfs: tmpfs:
# Ensure /tmp is a writable tmpfs for the app user; mode 1777 to support su-exec drop. # Ensure /tmp is a writable tmpfs for the app user; mode 1777 to support su-exec drop.
- /tmp:uid=20211,gid=20211,mode=1777,noexec,nosuid,nodev,size=64m - /tmp:uid=20211,gid=20211,mode=1777,noexec,nosuid,nodev,size=64m
- /tmp/log:uid=20211,gid=20211,mode=1777,noexec,nosuid,nodev,size=64m
- /tmp/api:uid=20211,gid=20211,mode=1777,noexec,nosuid,nodev,size=64m
- /tmp/run:uid=20211,gid=20211,mode=1777,noexec,nosuid,nodev,size=64m
volumes: volumes:
test_netalertx_data: test_netalertx_data:
test_system_services_active_config: test_system_services_active_config:

View File

@@ -665,7 +665,7 @@ def _run_container(
stdout=subprocess.PIPE, # MUST capture stdout for test assertions and debugging stdout=subprocess.PIPE, # MUST capture stdout for test assertions and debugging
stderr=subprocess.PIPE, # MUST capture stderr for test assertions and debugging stderr=subprocess.PIPE, # MUST capture stderr for test assertions and debugging
text=True, text=True,
timeout=max(SUBPROCESS_TIMEOUT_SECONDS, sleep_seconds + 30), timeout=max(SUBPROCESS_TIMEOUT_SECONDS, sleep_seconds),
check=False, check=False,
) )

View File

@@ -76,8 +76,8 @@ CONTAINER_PATHS = {
TMPFS_ROOT = "/tmp:uid=20211,gid=20211,mode=1700,rw,noexec,nosuid,nodev,async,noatime,nodiratime" TMPFS_ROOT = "/tmp:uid=20211,gid=20211,mode=1700,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
DEFAULT_HTTP_PORT = int(os.environ.get("NETALERTX_DEFAULT_HTTP_PORT", "20211")) DEFAULT_HTTP_PORT = int(os.environ.get("NETALERTX_DEFAULT_HTTP_PORT", "20211"))
COMPOSE_PORT_WAIT_TIMEOUT = int(os.environ.get("NETALERTX_COMPOSE_PORT_WAIT_TIMEOUT", "180")) COMPOSE_PORT_WAIT_TIMEOUT = "30"
COMPOSE_SETTLE_WAIT_SECONDS = int(os.environ.get("NETALERTX_COMPOSE_SETTLE_WAIT", "15")) COMPOSE_SETTLE_WAIT_SECONDS = "20"
PREFERRED_CUSTOM_PORTS = (22111, 22112) PREFERRED_CUSTOM_PORTS = (22111, 22112)
HOST_ADDR_ENV = os.environ.get("NETALERTX_HOST_ADDRS", "") HOST_ADDR_ENV = os.environ.get("NETALERTX_HOST_ADDRS", "")

View File

@@ -360,7 +360,7 @@ def create_test_scenarios() -> List[TestScenario]:
container_path="/data", container_path="/data",
is_persistent=True, is_persistent=True,
docker_compose="docker-compose.mount-test.data_noread.yml", docker_compose="docker-compose.mount-test.data_noread.yml",
expected_issues=[""], expected_issues=[],
expected_exit_code=0, expected_exit_code=0,
), ),
TestScenario( # Will no longer fail due to the root-entrypoint fix TestScenario( # Will no longer fail due to the root-entrypoint fix