Adam Outler
35b7e80be4
Remove additional "tests" from instructions.
2025-11-23 16:43:28 +00:00
Adam Outler
07eeac0a0b
remove redefined variable
2025-11-23 16:38:03 +00:00
Adam Outler
240d86bf1e
docker tests
2025-11-23 16:31:04 +00:00
Adam Outler
274fd50a92
Adjust healthchecks and fix docker test scripts
2025-11-23 15:56:42 +00:00
Adam Outler
bbf49c3686
Don't kill container on backend restart commanded
2025-11-23 01:27:51 +00:00
Adam Outler
e3458630ba
Convert from crond to supercronic
2025-11-23 01:14:21 +00:00
Adam Outler
aee5e04b9f
fix(ci): Correct quoting in code_checks workflow (again)
2025-11-20 05:01:08 +01:00
Adam Outler
e0c96052bb
fix(ci): Correct quoting in code_checks workflow
2025-11-20 04:37:35 +01:00
Adam Outler
fd5235dd0a
CI Checks
...
Uses the new run_docker_tests.sh script which is self-contained and handles all dependencies and test execution within a Docker container. This ensures that the CI environment is consistent with the local devcontainer environment.
Fixes an issue where the job name 'test' was considered invalid. Renamed to 'docker-tests'.
Ensures that tests marked as 'feature_complete' are also excluded from the test run.
2025-11-20 04:34:59 +01:00
Adam Outler
f3de66a287
feat: Add run_docker_tests.sh for CI/CD and local testing
...
Introduces a comprehensive script to build, run, and test NetAlertX within a Dockerized devcontainer environment, replicating the setup defined in . This script ensures consistency for CI/CD pipelines and local development.
The script addresses several environmental challenges:
- Properly builds the Docker image.
- Starts the container with necessary capabilities and host-gateway.
- Installs Python test dependencies (, , ) into the virtual environment.
- Executes the script to initialize services.
- Implements a healthcheck loop to wait for services to become fully operational before running tests.
- Configures to use a writable cache directory () to avoid permission issues.
- Includes a workaround to insert a dummy 'internet' device into the database, resolving a flakiness in caused by its reliance on unpredictable database state without altering any project code.
This script ensures a green test suite, making it suitable for automated testing in environments like GitHub Actions.
2025-11-20 04:19:30 +01:00
Adam Outler
4ccac66a73
Update Docker Compose documentation for volume usage
...
Clarified the preferred volume layout for NetAlertX and explained the bind mount alternative.
2025-11-17 18:31:37 -05:00
Adam Outler
bb365a5e81
UID 20212 for read only before definition.
2025-11-17 20:57:18 +00:00
Adam Outler
e2633d0251
Update from docker v3 to v6
2025-11-17 20:54:18 +00:00
Adam Outler
09c40e76b2
No git in Dockerfile generation.
2025-11-17 20:47:11 +00:00
Adam Outler
abc3e71440
Remove redundant chown; read only version.
2025-11-17 20:45:52 +00:00
Adam Outler
d13596c35c
Coderabbit suggestion
2025-11-17 20:27:27 +00:00
Adam Outler
7d5dcf061c
Add VERSION file creation
2025-11-17 15:18:41 -05:00
Adam Outler
6206e483a9
Remove files that shouldn't be in PR: db.php, cron files
2025-11-17 02:57:42 +00:00
Adam Outler
f1ecc61de3
Tests Passing
2025-11-17 02:45:42 +00:00
Adam Outler
8a89f3b340
Remove VERSION file from repo and generate dynamic
2025-11-17 02:18:00 +00:00
Adam Outler
a93e87493f
Update Python setup action to version 5
2025-11-16 20:33:53 -05:00
Adam Outler
c7032bceba
Upgrade Python setup action and dependencies
...
Updated Python setup action to version 5 and specified Python version 3.11. Also modified dependencies installation to include pyyaml.
2025-11-16 20:32:08 -05:00
Adam Outler
0cd7528284
Fix cron restart
2025-11-17 00:20:08 +00:00
Adam Outler
2309b8eb3f
Add linting and testing steps to workflow
2025-11-16 18:58:20 -05:00
Adam Outler
734db423ee
Add missing .VERSION file
2025-11-13 00:35:06 +00:00
Adam Outler
d23bf45310
Merge branch 'jokob-sk:main' into port-fixes
2025-11-12 15:02:36 -05:00
Adam Outler
9c366881f1
Fix for ports
2025-11-12 12:02:31 +00:00
Adam Outler
c5a1f19567
Attempt to kick off coderabbit
...
Removed unnecessary blank lines in the nginx configuration template.
2025-11-09 16:56:47 -05:00
Adam Outler
4161261c43
Remove unused files
2025-11-09 17:38:31 +00:00
Adam Outler
179821a527
fix workspace
2025-11-09 17:34:31 +00:00
Adam Outler
2028b1a6e3
Merge remote-tracking branch 'origin/main' into data_and_tmp_standardization
2025-11-09 17:14:11 +00:00
Adam Outler
5b871865db
/data and /tmp standarization
2025-11-09 17:03:25 +00:00
Adam Outler
7037cf1bc6
fxi permissions on synology inherited
2025-11-02 10:26:21 +00:00
Adam Outler
dde542c484
make /services/scripts executable by default
2025-11-02 00:12:50 +00:00
Adam Outler
23a0fac973
Address Coderabbit issue
2025-11-01 23:54:54 +00:00
Adam Outler and coderabbitai[bot]
db5381db14
Update test/docker_tests/test_docker_compose_scenarios.py
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-11-01 15:12:54 -04:00
Adam Outler
f1fbc47508
coderabbit required fix
2025-11-01 19:04:31 +00:00
Adam Outler and coderabbitai[bot]
2a9d352322
Update test/docker_tests/configurations/test_all_docker_composes.sh
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-11-01 14:57:57 -04:00
Adam Outler
51aa3d4a2e
coderabbit
2025-11-01 18:53:07 +00:00
Adam Outler
70373b1fbd
Address coderabbit-discoverd issues
2025-11-01 18:18:32 +00:00
Adam Outler
79887f0bd7
Merge branch 'jokob-sk:main' into FEAT--Make-Errors-More-Helpful
2025-10-31 23:59:45 -04:00
Adam Outler
a6bc96d2dd
Corrections on testing and behaviors
2025-11-01 03:57:52 +00:00
Adam Outler
8edef9e852
All errors have documentation links
2025-10-31 22:24:31 +00:00
Adam Outler
1e63cec37c
Revise tests. Use docker-compose.yml where possible
2025-10-31 22:24:08 +00:00
Adam Outler
d29700acf8
New mount test structure.
2025-10-31 00:07:34 +00:00
Adam Outler
b89a44d0ec
Improve startup checks
2025-10-30 21:05:24 +00:00
Adam Outler
8cb1836777
Move all check- scripts to /entrypoint.d/ for better organization
2025-10-30 20:18:08 +00:00
Adam Outler
55171e06b6
update compose
2025-10-29 23:29:32 +00:00
Adam Outler
8d4c7ea074
less invasive permission changes
2025-10-29 00:32:08 +00:00
Adam Outler
b4027b6eee
docker-compose needed for fast container rebuilds
2025-10-29 00:08:32 +00:00
Adam Outler
b36b3be176
Fix permissions messages and test parms
2025-10-29 00:08:09 +00:00
Adam Outler
7ddb7d293e
new method of fixing permissions
2025-10-28 23:58:02 +00:00
Adam Outler
6afa52e604
Security features overview
2025-10-28 00:15:12 +00:00
Adam Outler and coderabbitai[bot]
3ba410053e
Update install/production-filesystem/entrypoint.sh
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-27 16:51:17 -04:00
Adam Outler
a6ac492d76
Add APP_CONF_OVERRIDE support
2025-10-27 20:19:17 +00:00
Adam Outler
095372a22b
Rename GRAPHQL_PORT to APP_CONF_OVERRIDE
2025-10-26 16:49:28 -04:00
Adam Outler
d8c2dc0563
Apply coderabit's latest hare-brained idea
2025-10-26 19:58:57 +00:00
Adam Outler
cfffaf4503
Strengthen tests
2025-10-26 19:40:17 +00:00
Adam Outler
01b64cce66
Changes requested by coderabbit.
2025-10-26 19:34:28 +00:00
Adam Outler and coderabbitai[bot]
63c4b0d7c2
Update .devcontainer/devcontainer.json
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-26 14:15:12 -04:00
Adam Outler
5ec35aa50e
Build the netalertx-test image on start so tests don't fail
2025-10-26 18:12:02 +00:00
Adam Outler
ededd39d5b
Coderabbit fixes
2025-10-26 17:53:46 +00:00
Adam Outler and coderabbitai[bot]
15bc1635c2
Update install/production-filesystem/services/scripts/check-root.sh
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-26 12:45:42 -04:00
Adam Outler
74a67e3b38
Added clarifying examples to dockerfile
2025-10-26 16:10:17 +00:00
Adam Outler
52b747be0b
Remove warnings in devcontainer
2025-10-26 15:54:01 +00:00
Adam Outler
d2c28f6a28
Changes for tests identified by CodeRabbit
2025-10-26 15:30:03 +00:00
Adam Outler
fb02774814
Fix errors for tests
2025-10-26 00:14:03 +00:00
Adam Outler
c4a041e6e1
Coderabit changes
2025-10-25 17:58:21 +00:00
Adam Outler
32f9111f66
Restore test_safe_builder_unit.py to upstream version (remove local changes)
2025-10-24 20:32:50 +00:00
Adam Outler
7f74c2d6f3
docker compose changes
2025-10-23 21:37:11 -04:00
Adam Outler
5a63b7243b
Merge main into hardening-fixes
2025-10-23 21:19:30 -04:00
Adam Outler
0897c05200
Tidy up output
2025-10-23 21:16:15 -04:00
Adam Outler
7a3bf6716c
Remove code coverage from repository
2025-10-23 20:46:39 -04:00
Adam Outler
edd5bd27b0
Devcontainer setup
2025-10-23 23:33:04 +00:00
Adam Outler
3b7830b922
Add unit tests and updated messages
2025-10-23 21:15:15 +00:00
Adam Outler
356cacab2b
Don't increment sqlite sequence
2025-10-23 21:15:02 +00:00
Adam Outler
d12ffb31ec
Update readme with simple build instructions
2025-10-23 21:04:15 +00:00
Adam Outler
f70d3f3b76
Limiter fix for older kernels
2025-10-23 20:36:04 +00:00
Adam Outler
27899469af
use system speedtest, not un-updated & removed script
2025-10-23 08:36:42 +00:00
Adam Outler
59c7d7b415
Add test dependencies
2025-10-23 00:27:16 +00:00
Adam Outler
0851680ef6
Add additional startup checks
2025-10-22 23:51:36 +00:00
Adam Outler
1af19fe9fd
Only nginx/python errors in docker logs. no stdout from backend.
2025-10-22 23:51:15 +00:00
Adam Outler
ce8bb53bc8
Refine devcontainer setup and docker tests
2025-10-22 19:48:58 -04:00
Adam Outler
5636a159b8
Add check permissions script
2025-10-22 00:02:03 +00:00
Adam Outler
05f083730b
Fix missing storage check
2025-10-21 19:18:59 +00:00
Adam Outler
3441f77a78
Fix always fresh install env
2025-10-21 19:10:48 +00:00
Adam Outler
d6bcb27c42
Missing devcontainer build timestamp
2025-10-21 19:05:47 +00:00
Adam Outler
6f2e556112
Remove duplicate file replacement logic in update_vendors.sh
...
Dang it coderabbit. We expect more of your diffs.
2025-10-19 12:18:16 -04:00
Adam Outler and coderabbitai[bot]
ea4c70ee7f
Update install/production-filesystem/services/scripts/check-first-run-config.sh
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-19 12:15:55 -04:00
Adam Outler
5ed46da1dc
Set caps on actual python3.12
2025-10-19 15:55:28 +00:00
Adam Outler
628f35c15d
Remove unused pythonpathpath variable
2025-10-19 15:41:57 +00:00
Adam Outler
066fecfd88
add caps to python instead of scapy.
2025-10-19 15:39:54 +00:00
Adam Outler and coderabbitai[bot]
660f0c2c48
Update install/production-filesystem/services/scripts/update_vendors.sh
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-19 11:37:04 -04:00
Adam Outler and coderabbitai[bot]
999feb27f9
Update install/production-filesystem/services/scripts/update_vendors.sh
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-19 11:36:09 -04:00
Adam Outler and coderabbitai[bot]
86bf0a3672
Update install/production-filesystem/services/scripts/check-first-run-config.sh
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-19 11:35:27 -04:00
Adam Outler and coderabbitai[bot]
8eab7eeae9
Update .devcontainer/scripts/setup.sh
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-19 11:33:07 -04:00
Adam Outler
84f1283cd0
Add novel coderabit no-write database creation
2025-10-19 15:27:55 +00:00
Adam Outler
dcf250d36f
Coderabbit nitpicks.
2025-10-19 15:12:27 +00:00
Adam Outler
131c0c0f4b
Fix fish terminal. Smarter code completion and other nicities.
2025-10-19 14:28:09 +00:00
Adam Outler
a58b3e35b9
Coderabbit suggestions
2025-10-19 14:18:07 +00:00