Marek Wolan
cbc414bddf
#2702 - update data manipulation notebook text
2024-07-02 15:25:40 +01:00
Marek Wolan
feabe5117c
#2700 Fix docstrings in application configure methods
2024-07-02 12:48:23 +01:00
Marek Wolan
b27ac52d9e
#2700 add E2E tests for application configure actions
2024-07-02 11:10:19 +01:00
Marek Wolan
33b9c5f6b3
Merge branch 'feature/2701-refactor-install-action' into feature/2700-application-configure-actions
2024-07-02 10:41:17 +01:00
Czar Echavez
eee7a68f28
Merged PR 440: #2620 : add nbmake and pytest xdist to run the notebooks as part of pieline
...


## Summary
Added nbmake so that the pytest can be used to run the notebooks in primaite as part of the pipeline
## Test process
n/a
## Checklist
- [X] PR is linked to a **work item**
- [X] **acceptance criteria** of linked ticket are met
- [X] performed **self-review** of the code
- [ ] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] updated the **change log**
- [X] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code
#2620 : add nbmake and pytest xdist to run the notebooks as part of pieline
Related work items: #2620
2024-07-02 08:21:29 +00:00
Czar Echavez
e2429df220
#2620 : remove div zero from notebook
2024-07-02 02:52:08 +01:00
Czar Echavez
a5a93fe850
#2620 : commit a div zero to check that the pipeline fails
2024-07-02 02:10:40 +01:00
Czar Echavez
ab3e84b8b9
#2620 : remove irrelevant change
2024-07-01 17:03:14 +01:00
Czar Echavez
afcb844501
#2620 : remove cell that fails on purpose
2024-07-01 16:45:28 +01:00
Marek Wolan
dc2c64b2f6
#2701 - Remove ip address option from node application install
2024-07-01 16:23:10 +01:00
Czar Echavez
9c568b0ff3
Merged PR 439: #2641 : Added a check for software health state in db service + tests
...
## Summary
Added a check in the database service process_sql method that checks if the Database Service is in a GOOD state (mainly so that the database service being in a fixed state returns an error)
## Test process
https://dev.azure.com/ma-dev-uk/PrimAITE/_git/PrimAITE/pullrequest/439?_a=files&path=/tests/integration_tests/system/test_database_on_node.py
https://dev.azure.com/ma-dev-uk/PrimAITE/_git/PrimAITE/pullrequest/439?_a=files&path=/tests/integration_tests/system/test_web_client_server_and_database.py
## Checklist
- [X] PR is linked to a **work item**
- [X] **acceptance criteria** of linked ticket are met
- [X] performed **self-review** of the code
- [X] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] updated the **change log**
- [X] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code
#2641 : Added a check for software health state in db service + tests
Related work items: #2641
2024-07-01 15:22:22 +00:00
Marek Wolan
f2db8b0fb5
Merge remote-tracking branch 'origin/feature/2438-application-install-action-refactor' into feature/2700-application-configure-actions
2024-07-01 15:26:19 +01:00
Marek Wolan
bf8ec60833
#2700 Add configure dosbot action
2024-07-01 15:25:20 +01:00
Marek Wolan
ab73ac20e8
#2700 add ransomware configure action
2024-07-01 14:41:41 +01:00
Charlie Crane
96f62a3229
Merged PR 436: 2656 - Implement Optional Negative Reward
...
## Summary
This PR implements an "ActionPenalty" Reward class, that can be used for penalising an agent when it carries out an action other than DONOTHING.
The value for this can be configured within the scenario YAML file.
## Test process
I've written unit tests to check that the action penalty is correctly calculated and applied, another to check that the config is read correctly and loads into PrimaiteGymEnv correctly.
## Checklist
- [X] PR is linked to a **work item**
- [X] **acceptance criteria** of linked ticket are met
- [X] performed **self-review** of the code
- [X] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] updated the **change log**
- [X] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code
Related work items: #2656
2024-07-01 13:25:05 +00:00
Marek Wolan
655bc04a42
#2705 Minor comment and name changes to applications
2024-07-01 13:21:08 +01:00
Czar Echavez
ee4e152f13
#2620 : publish result of test and checking if pipeline fails
2024-07-01 12:00:17 +01:00
Marek Wolan
c34cb6d7ce
#2700 Add DatabaseConfigure action
2024-07-01 11:31:27 +01:00
Czar Echavez
3ac97f8c3f
#2641 : Added a check for software health state in db service + tests
2024-06-28 13:07:57 +01:00
Marek Wolan
f796babf93
#2705 - Move application registry into application module instead of hardcoding in game module
2024-06-28 11:57:54 +01:00
Marek Wolan
7a680678aa
#2656 - Make action penalty more configurable
2024-06-27 12:01:32 +01:00
Charlie Crane
e204afff6f
#2656 - Removing the change to Data_Manipulation.yaml as this isn't necessary
2024-06-26 20:58:52 +01:00
Charlie Crane
7a833afe2d
#2656 - Unit tests for new ActionPenalty reward component, testing yaml and some minor changes to the implementation. Need to update Documentation to detail how this is added
2024-06-26 12:20:28 +01:00
Charlie Crane
5ad16fdb7e
#2656 - Corrected from_config() for ActionPenalty so that it can pull the negative reward value from YAML and apply, defaulting to 0 still if not found/not configured.
...
Currerntly prints to terminal when a negative reward is being applied, though this is for implementation and troubleshooting. To be removed before PR is pushed out of draft
2024-06-25 15:36:47 +01:00
Charlie Crane
db27bea4ec
#2656 - Committing current state before lunch. New ActionPenalty reward added. Basic implementation returns a -1 reward if last_action_response.action isn't DONOTHING. Minor change in data_manipulation so I can see it working in the data_manipulation notebook. Need to use configured values but so far, promising?. Looks to result in a better average reward than without which is good, I think.
2024-06-25 12:29:01 +01:00
Marek Wolan
e915d5e090
Updated VERSION
2024-06-25 10:44:15 +00:00
Marek Wolan
a861ccb1ee
Fix typo in log message
2024-06-25 10:31:28 +00:00
Marek Wolan
28dabad66b
#2682 Backport changes to core PrimAITE
2024-06-25 11:04:52 +01:00
Marek Wolan
7375bb383a
#2661 Improve style on ARP check code to be more concise
2024-06-18 10:09:06 +01:00
Marek Wolan
c90c059411
fix infini-ARP bug when pinging broadcast/network address
2024-06-14 14:48:28 +00:00
Charlie Crane
923d2629ca
Merged PR 418: Update Pre-Commit to check for valid copyright
...
## Summary
Updates Pre-commit with the a check to ensure valid copyright headers
## Test process
*How have you tested this (if applicable)?*
## Checklist
- [X] PR is linked to a **work item**
- [ ] **acceptance criteria** of linked ticket are met
- [ ] performed **self-review** of the code
- [ ] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] updated the **change log**
- [ ] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code
Related work items: #2646
2024-06-13 18:54:48 +00:00
Czar Echavez
4ac352bf3b
Merged PR 419: integrate NIC traffic into observation space
...
## Summary
- Integrates the NIC traffic into the observation space
- Added `monitored_traffic` property into agent config which specifies which traffic is going to be included in observation
## Test process
https://dev.azure.com/ma-dev-uk/PrimAITE/_git/PrimAITE/pullrequest/419?_a=files&path=/tests/integration_tests/game_layer/observations/test_nic_observations.py
## Checklist
- [X] PR is linked to a **work item**
- [X] **acceptance criteria** of linked ticket are met
- [X] performed **self-review** of the code
- [X] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] updated the **change log**
- [X] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code
Related work items: #2658
2024-06-13 17:53:43 +00:00
Czar Echavez
101fa3ebdb
#2658 : change key of observation to match what is in CAOS document
2024-06-13 16:29:02 +01:00
Czar Echavez
65d9cfa7dc
#2658 : I cast uncast on NIC space
2024-06-13 15:11:34 +01:00
Marek Wolan
0bd52b1c15
Merge remote-tracking branch 'origin/dev' into feature/2502-placeholders-docs
2024-06-13 12:52:59 +01:00
Marek Wolan
fad8d936e6
Merge remote-tracking branch 'origin/dev' into feature/2646_Update-pre-commit-to-check-for-valid-copyright
2024-06-13 12:52:09 +01:00
Czar Echavez
1798674d39
#2658 : fix space
2024-06-13 12:37:20 +01:00
Charlie Crane
6762fd805e
#2646 - Adding back the dns client/server python that was deleted
2024-06-13 12:13:16 +01:00
Czar Echavez
539577ddc3
#2658 : added monitored traffic into config + default obs space
2024-06-13 11:48:13 +01:00
Marek Wolan
c070bcc253
Fix database client uninstall failing due to persistent connection
2024-06-13 10:33:59 +01:00
Czar Echavez
76e954d1a1
Merge remote-tracking branch 'origin/dev' into feature/1847-more-red-agents
2024-06-11 14:26:11 +01:00
Marek Wolan
935b6bd343
Merge remote-tracking branch 'origin/release/3.0.0' into merge-3.0.0-to-dev
2024-06-11 11:55:01 +01:00
Marek Wolan
d1bbab71b7
Updated session_output_writer.py
2024-06-10 14:46:06 +00:00
Marek Wolan
2d54d482a0
Updated session_output_reader.py
2024-06-10 14:45:56 +00:00
Marek Wolan
c538aee022
Rename benchmark variables and add h1 to notebooks
2024-06-10 12:58:07 +01:00
Archer.Bowen
2a6a16b222
Space inbetween title to prevent merge conflicts.
2024-06-10 10:50:58 +01:00
Archer.Bowen
af0e67a61a
User-Guide update: Very minor changes to notebook code cells to match release version identically.
2024-06-10 10:41:05 +01:00
Archer.Bowen
1ad3adbec2
Merge remote-tracking branch 'origin/release/3.0.0' into user-guide-feedback-core-fixes
2024-06-10 09:54:02 +01:00
Archer.Bowen
ae242694f3
Minor change to title to prevent merge conflicts.
2024-06-07 17:13:21 +01:00
Archer.Bowen
2954ca966f
Updated core user guide to match exactly that of 3.0.0/internal.
2024-06-07 16:35:33 +01:00