Chris McCarthy
cb002d644f
#2248 - Tidying up the tests so that they use updated networks
2024-02-02 16:55:43 +00:00
Czar Echavez
c985b8793d
#2151 and #2166 : added tests for application being unused + even more tests
2024-01-10 11:58:36 +00:00
Czar Echavez
6fc4e15660
#2151 : remove changing of health_state_actual in actions and tests
2024-01-09 15:18:31 +00:00
Czar Echavez
423436c3ad
#2084 : testing webbrowser requesting database service user data via web server
2023-11-30 16:32:31 +00:00
Czar Echavez
3cf21e4015
#2084 : change all instances of retrieving software from software['software_name'] to software.get() + adding some tests for describe state
2023-11-30 13:49:37 +00:00
Czar Echavez
b2a52b2ec0
#2084 : created a fixture that we can use to test things at a non end to end level
2023-11-29 16:31:21 +00:00
Czar Echavez
19d534395b
#2084 : beginning the introduction of code coverage + adding tests to try to meet the 80% code coverage target
2023-11-29 01:28:40 +00:00
Czar Echavez
330e87698e
Merge remote-tracking branch 'origin/dev' into bugfix/2064-software-continues-running-after-node-is-turned-off
2023-11-24 15:16:25 +00:00
Marek Wolan
bfd5f054dc
Merge 'origin/dev' into feature/1971-ray-agents-2
2023-11-24 09:50:37 +00:00
Czar Echavez
8aa743188f
#2064 : fix layout of test so it passes in pipeline
2023-11-23 22:28:08 +00:00
Czar Echavez
2ce03e0262
#2064 : turn on everything when node is turned on
2023-11-23 22:10:53 +00:00
Czar Echavez
bd6c27244c
#2064 : Edited services and applications to handle when they are shut down
2023-11-23 19:49:03 +00:00
Chris McCarthy
efeaa4c1cc
#2034 - Implemented the Simulation reset functionality by doing a deepcopy of the Simulation object inside the PrimaiteSession upon instantiation. Added a test that uninstalls a service before performing a reset then checks that the service reappears.
2023-11-23 15:31:06 +00:00
Marek Wolan
8a2279c6cb
Update end to end tests after session changes
2023-11-23 01:40:27 +00:00
Marek Wolan
afd64e4674
Separate game, environment, and session
2023-11-22 11:59:25 +00:00
Marek Wolan
13c49bf3ea
Fix session path monkeypatch
2023-11-16 15:19:14 +00:00
Marek Wolan
7545c25a46
Make pytest patch with temporary session dir
2023-11-16 15:11:03 +00:00
Marek Wolan
64e8b3bcea
Add basic primaite session e2e tests
2023-11-15 16:04:16 +00:00
Marek Wolan
0ea282166d
Merge remote-tracking branch 'origin/dev' into dev-game-layer
2023-11-06 16:23:29 +00:00
Czar.Echavez
68b22b6444
#1961 : node scanning + applying timestep to all components within node + node revealing to red
2023-10-27 17:50:41 +01:00
Marek Wolan
c57b5152c0
Remove broken tests
2023-10-25 17:08:01 +01:00
Marek Wolan
e8e14ae68a
Comment out tests for primaite v2
2023-10-25 13:56:02 +01:00
Czar.Echavez
ffc4711afb
#1947 : added test for agent actions + clearing up the implementation of the request managers for filesystem
2023-10-20 12:58:58 +01:00
Czar.Echavez
060bbf0506
#1947 : added ability for files and folders to be scanned, corrupted and repaired
2023-10-10 15:14:47 +01:00
Chris McCarthy
b1d8666c16
#1816 - Added database client. Installed the database client on the Web Server node in the UC2 network. Updated the integration test to query the DB server using the DB client.
2023-09-08 16:50:49 +01:00
Chris McCarthy
2f744af34e
#1816 - Added the final pieces of the puzzle to get data up from NIC → session manager → software manager → service.
...
- Implemented a basic sim DB that matches UC2 data manipulation DB in IY.
- Added a test that confirms DB queries can be sent over the network.
2023-09-06 22:26:23 +01:00
Chris McCarthy
6b41bec32a
#1816 - Added the final pieces of the puzzle to get data up from NIC → session manager → software manager → service.
...
- Implemented a basic sim DB that matches UC2 data manipulation DB in IY.
- Added a test that confirms DB queries can be sent over the network.
2023-09-06 22:01:51 +01:00
Czar Echavez
b08683fcd3
#1714 : fix tests
2023-08-03 12:42:16 +01:00
Czar Echavez
ea8c65a17e
#1714 : set up files
2023-08-01 16:18:49 +01:00
Chris McCarthy
1dc23e11f2
#1648 - Updated file header from 'Crown Owned Copyright (C) Dstl 2023. DEFCON 703. Shared in confidence.' to '© Crown-owned copyright 2023, Defence Science and Technology Laboratory UK'
2023-07-21 14:54:09 +01:00
Chris McCarthy
aaf1066d29
#1632 - Added full benchmarking script that included plots and a LaTeX report. Ran the v2.0.0rc1 benchmark. Tidied a few other things up.
2023-07-20 08:48:18 +01:00
Chris McCarthy
f4683f3b66
#1631 - Updated the copyright statement to comply with DEFCON 703 Edition 08/13
2023-07-17 19:57:34 +01:00
Christopher McCarthy
3186fcb489
Merged PR 121: #1629 - Added rllib test
...
## Summary
Quick test that uses RLLIB in a session
## Test process
The learning session completes then we check that the number of rows in both the average reward per episode and all transactions csv files.
## Checklist
- [X] This PR is linked to a **work item**
- [X] I have performed **self-review** of the code
- [X] I have written **tests** for any new functionality added with this PR
- [ ] I have updated the **documentation** if this PR changes or adds functionality
- [X] I have run **pre-commit** checks for code style
#1629 - Added rllib test
Related work items: #1629
2023-07-17 17:28:51 +00:00
Chris McCarthy
ee0c797c3c
#1629 - Added assertion in the test that checks the length of the all transactions file too.
...
- Added supporting function on the TempPrimaiteSession class that reads the all transactions csv file.
- Some renaming of the functions.
2023-07-17 12:14:47 +01:00
Czar Echavez
dce0d10383
#1595 : fix poorly merged tests + files
2023-07-14 11:21:59 +01:00
Chris McCarthy
1ddfca6459
#1566 - Refactored the test_train_eval_episode_steps.py to sue TempPrimaiteSession.
...
- Fixed all errors that were caused b fixing the above.
- Some tests still fail, these are for SS to fix.
- Dropped the old run_generic stuff from conftest.py
2023-07-07 15:50:14 +01:00
Chris McCarthy
8edb26a65c
Merge remote-tracking branch 'origin/dev' into 1566-configure-episode-steps-learn-eval
...
# Conflicts:
# src/primaite/agents/rllib.py
2023-07-07 14:34:20 +01:00
SunilSamra
79d98e977b
1566 - added test file and edited configs to include types of num steps and modifed agents to use correct step and episode counts
2023-07-07 14:13:47 +01:00
Chris McCarthy
a35c363345
#1386 - Updated tests in test_seeding_and_deterministic_session.py to use TempPrimaiteSession.
...
- Added test_seeded_learning test and test_deterministic_evaluation test.
- Passed config values seed and deterministic to ppo agent
- Dropped deterministic override in evaluate functions
- TempPrimaiteSession now writes files to a UUID folder rather than datetime
- Added seed to Ray RLlib agent setup in rllib.py
- Added seed to SB3 agent setup in sb3.py
2023-07-06 11:35:44 +01:00
Czar Echavez
0068092d8b
#1386 : remove unneeded configs + setting the seed globally + temp test
2023-07-05 15:02:41 +01:00
Czar Echavez
c7de7bf21b
Merge branch 'dev' into feature/1386-enable-a-repeatable-or-deterministic-baseline-test
2023-07-04 09:41:07 +01:00
Chris McCarthy
e11fd2ced4
#917 - Fixed the RLlib integration
...
- Dropped support for overriding the num_episodes and num_steps at the agent level. It's just not needed and will add complexity when overriding and writing output files.
2023-06-30 16:52:57 +01:00
Chris McCarthy
7b1f889415
#917 - Integrated the PrimaiteSession into all tests.
...
- Ran a full pre-commit hook and thus encountered tons of fixes required
2023-06-30 09:08:13 +01:00
Chris McCarthy
4866722911
#917 - Overhauled transaction and mean reward writing.
...
- Separated out learning outputs from evaluation outputs
2023-06-28 16:34:00 +01:00
Czar Echavez
99399cbda6
#1386 : added documentation + dealing with pre-commit checks
2023-06-20 11:19:05 +01:00
Czar Echavez
9fb30ffe1b
#1386 : added the ability to set deterministic and seeding RNG when training and evaluating + the fix provided in #1535
2023-06-20 10:41:30 +01:00
Chris McCarthy
3670f16766
#917 - Integrated both SB3 and RLlib agents into PrimaiteSession
2023-06-19 20:27:08 +01:00
Chris McCarthy
6c2c95b329
Merge remote-tracking branch 'origin/dev' into feature/915_PRI-31_Packaging_Deployment
...
# Conflicts:
# tests/conftest.py
# tests/test_observation_space.py
# tests/test_reward.py
2023-06-09 10:35:14 +01:00
Chris McCarthy
5558750f13
#915 - Refactored documentation and included APi docs, dependencies.
...
- make files now re-build autosummary and deps file.
- Added typer and platformdirs to deps in pyproject.toml.
- Made root_is_pure = True in setup.py as platform/python specific wheels don't need to be built but the option is there should we need to.
-
Added an e2e test for primaite.main.run func.
2023-06-08 15:57:38 +01:00
Chris McCarthy
c03dc8fd6b
# 915 - Fixed issue in conftest.py where session_path and timestamp_str were not being passed to Primaite.
...
- Also now logging all test outputs to temp directory.
2023-06-07 22:57:37 +01:00