Commit Graph

2118 Commits

Author SHA1 Message Date
Pherring04
fa42e8be67 Accounted for namespace scoping issues 2024-06-24 13:51:14 -05:00
Pherring04
04e1d4b790 Testing CI 2024-06-17 11:31:41 -05:00
Pherring04
7f80fc73f1 Backed out bins 2024-06-17 10:43:19 -05:00
Pherring04
318356f141 MacOS test fix 2024-06-17 10:06:04 -05:00
Pherring04
89ac4405e7
Removed commented code 2024-06-10 13:34:51 -05:00
Pherring04
79af91f124 Updated convert_swig to fix several issues caused by SWIG 4 2024-06-10 13:29:15 -05:00
jmpenn
fdb2bb20b9
Update Realtime-Best-Practices.md
Add "Did I mention you should buy more memory?" to 3.5 instead of "Buy more memory! Do it!" Makes it clear that it's intentional.
2024-05-21 11:48:48 -05:00
jmpenn
0c8bc45a84
Update Realtime-Best-Practices.md
Fix link format
2024-05-20 13:16:43 -05:00
jmpenn
4744408762
Update Realtime-Best-Practices.md
Fix example heading format:
Added space between ##### and title
2024-05-20 11:06:59 -05:00
jmpenn
95f357a937
Update How-To-Guides.md
Fix Link:
Change  .../RealTime-Best-Practices.md" to Realtime-Best-Practices.md"
2024-05-20 10:57:58 -05:00
Hong Chen
4d621e015a
Merge pull request #1710 from nasa/Realtime-Best-Practices
Wrote a Real-time Best Practices HOW TO
2024-05-20 10:39:30 -05:00
John M. Penn
5b994e687d Fixed link to figure. 2024-05-16 21:17:25 -05:00
John M. Penn
92f1234deb Fix review issues. 2024-05-16 21:08:46 -05:00
Hong Chen
d72312c602
Customize clang diagnostic handling. (#1707)
* Cutomize clang diagnostic handling.

* Removed code that was commented out.
2024-05-14 10:53:11 -05:00
John M. Penn
12d483f094 Mark down formating fixes to Realtime-Best-Practices.md 2024-05-13 14:44:17 -05:00
John M. Penn
353b5afd84 Wrote a Real-time Best Practices HOW TO 2024-05-13 13:49:46 -05:00
dependabot[bot]
26c18d95af
Bump ejs from 3.1.9 to 3.1.10 in /trick_source/web/dashboard (#1705)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-07 14:56:17 -05:00
Hong Chen
e4f6774b3c
Updated to use the latest swig and llvm 15. (#1699)
* Updated to use the latest swig and llvm 15.

* Updated to use the latest llvm that comes with the macos docker image.

* Added missing install

* Test without installing llvm

* Tested to link llvm

* Changed back to use downloaded llvm+clang package.

* Check if macos (13-arm) image can find the installed udunits.

* Try macos-13 if it works as documented

* Need to match the cpu type of macos and the build for clang+llvm.

* Change to Mac-12 for gtest.h to be found.

* Switch back to Mac-13 as gtest.h is not a factor for this CI process..
2024-04-25 10:17:40 -05:00
Thomas Brain
873e4e203d
Fix bug dereferencing namespaces in convert_swig (#1696) 2024-04-23 10:49:39 -05:00
Pherring04
6937d003b3
fixed outdated trick_message function calls in documentation (#1691) 2024-04-18 13:48:20 -05:00
Thomas Brain
f8a079ec71
write template directive before template instance (#1679)
* Rework swig template declarations to be written before used in the containing class so that private methods are honored

* Fix SIM_test_ip for swig 4.2.0 and implemented review suggestions

* Additional review comment fixes

---------

Co-authored-by: Thomas Brain <thomas.a.brain@nasa.gov>
2024-04-18 13:47:06 -05:00
Pherring04
14708ca9cc
Issue-1677 Fix (#1688)
* Added timeout to control panel to variable server connection attempts

* Updated 127.0.0.1 to localhost
2024-04-18 13:46:05 -05:00
jmpenn
5065d96a15
Pre-increment (rather than post-increment) STL iterators in for loops… (#1692)
* Pre-increment (rather than post-increment) STL iterators in for loops. #1594

* Fix a goof. #1594
2024-04-18 11:41:35 -05:00
Pherring04
e515144252
Water Clock Sim v3 (#1668)
* Added Water Clock Sim

* Updated graphics and documentation

* Added images for README

* Typos in README

---------

Co-authored-by: Pherring04 <plherrin@JSLRL0523040929.ndc.nasa.gov>
2024-04-18 11:24:02 -05:00
jmpenn
04822023de
In MemoryManager change delete_var(const char*) to delete_var(std::string) (#1687) 2024-04-04 10:33:18 -05:00
Hong Chen
d40bc12570
Incorporate llvm 18 changes. (#1685)
* Incorporate llvm 18 changes.

* Fixed to set input file properly for clang3.4 or ealier.

* Fixed missing brackets and added the rule back for the condition to call clang init preprocessor which was taken out incorrectly by the last commit.
2024-04-02 13:37:00 -05:00
jmpenn
f475627ef7
Fix SIM_lander input file. (#1686) 2024-04-01 11:57:28 -05:00
ddj116
c6e44c6e04
Revert changes to trickops test yml file from Sept 2023 to fix trickops unit tests (#1681)
* TrickOps: Revert changes to trickops test yml file from Sept 2023

* trick_sims.yml was "accidentally changed" to remove unstable sims
  in Sept 2023, breaking the TrickOps unit tests. This reverts that change.
* Adjust new hashlib md5 comparison approach to work on systems where
  'usedforsecurity' isn't supported

* Move TrickOps Unit tests back into pull requests

* Adjust TrickOps actions artifacts to use v3.0.0

Per suggestion on workaround as described here:
  https://github.com/actions/upload-artifact/issues/478

---------

Co-authored-by: Dan Jordan <daniel.d.jordan@nasa.gov>
2024-04-01 09:43:12 -05:00
jmpenn
c4e60d9f9a
Proposed fix for deadlock on shutdown (#1673)
* Proposed fix for deadlock on shutdown

* Terminate C style comment.

* Added needed libs for applicable tests and updated the logic for when allowing/disallowing connections.

* Need to load additional trick libs for applicable tests for Linux.

---------

Co-authored-by: Hong Chen <hong.chen-1@nasa.gov>
2024-03-28 15:15:19 -05:00
Hong Chen
72e82e1566
1652 add trickified to default sie generation (#1680)
* Add trickeifed classes.resource to sie generation after cp.

* Go through all trickified classes.resource files if available and don't die on any if not found.
2024-03-27 15:29:01 -05:00
dependabot[bot]
209984255e
Bump express from 4.18.2 to 4.19.2 in /trick_source/web/dashboard (#1678)
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 14:32:56 -05:00
Thomas Brain
48924d585a
python3 GIL locking solution (#1675)
* Implemented use of the python GIL API to replace the less portable mutex solution.

* Replaced nullptr with NULL

---------

Co-authored-by: Thomas Brain <thomas.a.brain@nasa.gov>
2024-03-27 14:20:58 -05:00
Hong Chen
079a4d2aff
Add trickeifed classes.resource to sie generation after cp. (#1674) 2024-03-26 11:23:03 -05:00
dependabot[bot]
e6daf35524
Bump webpack-dev-middleware in /trick_source/web/dashboard (#1676)
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-26 11:05:27 -05:00
Hong Chen
d4f92cc501
Update frame_time attribute in FrameDataRecordGroup from unitless to s. (#1672) 2024-03-21 09:52:30 -05:00
dependabot[bot]
8f5a1e8bdb
Bump follow-redirects in /trick_source/web/dashboard (#1669)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-21 09:32:24 -05:00
Hong Chen
da0ddfcb89
Updated to get bsaf-1.9.2.jar locally instead of from maven repository. (#1667) 2024-03-13 10:21:50 -05:00
ddj116
0db42a1012
Use usedforsecurity=False when calling hashlib.md5 (#1662)
This clears "ValueError: ...  disabled for FIPS" for systems with FIPS
mechanisms enabled.

Co-authored-by: Dan Jordan <daniel.d.jordan@nasa.gov>
2024-03-08 10:20:19 -06:00
ddj116
e184db0eb8
Protect TrickOps progres bar from divide by zero (#1664)
Closes #1663

Co-authored-by: Dan Jordan <daniel.d.jordan@nasa.gov>
2024-03-08 10:10:55 -06:00
Hong Chen
2ac342cfc5
More rusage info added to the end of the run summary output enhancement (#1645)
* Added additional resource usage info for sim run.

* Fixed so voluntary context switches output uses corresponding ru_nvcsw instead of ru_nivcsw due to copy and paste error.

* Removed added resource usage data for page faults and block operations due to inconsistency on different OS.

* Updated to have voluntary and involuntary usage data for both initilization and run for sim shutdown run summary.
2024-02-29 14:52:41 -06:00
dependabot[bot]
df5bdc3107
Bump es5-ext from 0.10.62 to 0.10.64 in /trick_source/web/dashboard (#1658)
Bumps [es5-ext](https://github.com/medikoo/es5-ext) from 0.10.62 to 0.10.64.
- [Release notes](https://github.com/medikoo/es5-ext/releases)
- [Changelog](https://github.com/medikoo/es5-ext/blob/main/CHANGELOG.md)
- [Commits](https://github.com/medikoo/es5-ext/compare/v0.10.62...v0.10.64)

---
updated-dependencies:
- dependency-name: es5-ext
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-29 14:48:07 -06:00
jmpenn
a2183fb60e
Fix Issue #1386 (#1659) 2024-02-27 15:07:48 -06:00
Hong Chen
bc36f760e9
Update MacOS workflow to use SWIG 4.1.1 instead of the newest SWIG 4.2 (#1648)
* Updated to use SWIG 4.1.1 due to SWIG 2.0 generats setter wrapper for private constructor or operator.

* Needed to go to unzipped swig-4.1.1 directory before building it.

* Install needed  packages for being able to run SWIG 4.1.1 build script.
2024-02-15 13:36:05 -06:00
jmpenn
bfb6419637
Fix the alloc_type of allocations performed by declare_var. #1529 (#1639) 2024-01-24 14:06:04 -06:00
Alex Lin
7547d36ab4
Repurpose the "Sim/Real Time" field on the sim control panel #1626 (#1627)
* Repurpose the "Sim/Real Time" field on the sim control panel #1626

Added calculations in the realtime sync monitor job to calculate the
average sim/realtime ratio for the past 100 frames.  This is saved to
a new variable, actual_run_ratio.  Changed the sim control panel to
display the actual_run_ratio value.

* Repurpose the "Sim/Real Time" field on the sim control panel #1626

how does this compile locally but not in CI?  Didn't include cmath.
2024-01-23 10:46:55 -06:00
Mrockwell2
dad8e3b872
Standardized error messaging in Sim Control Panel. (#1636)
* Standardized error messaging in Sim Control Panel.

* Allowed for a popup when in Lite mode

* Fixed the NullPointerException

* Cleaning up and documenting implementation.
2024-01-18 10:57:52 -06:00
Hong Chen
fe105451b9
Dump cycle time for all type instead of just PROCESS_TYPE_AMF_CHILD. (#1638) 2024-01-18 10:40:19 -06:00
Hong Chen
6d86a0fd97
Updated to log applicable time in seconds instead of tics for frame logging (#1623)
* Updated to log applicable time in seconds instead of tics, remove scale attribute in dp product XMLs, and reset clock before realtime clock sync to avoid logging epoch time for frame logging.

* Removed "_seconds" from applicable time variable names.
2024-01-18 10:17:54 -06:00
dependabot[bot]
f80e600162
Bump follow-redirects in /trick_source/web/dashboard (#1635)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.3...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 10:06:29 -06:00
dependabot[bot]
65c20d9983
Bump plotly.js from 1.49.0 to 2.25.2 in /trick_source/web/dashboard (#1634)
Bumps [plotly.js](https://github.com/plotly/plotly.js) from 1.49.0 to 2.25.2.
- [Release notes](https://github.com/plotly/plotly.js/releases)
- [Changelog](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/plotly/plotly.js/compare/v1.49.0...v2.25.2)

---
updated-dependencies:
- dependency-name: plotly.js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 10:11:13 -06:00