Commit Graph

2126 Commits

Author SHA1 Message Date
Mrockwell2
7bc531273c
1720 websocket freeze issue (#1724)
* fixed web server freeze issue

* Revert "fixed web server freeze issue"

This reverts commit 7883453f6a.

* Fixed Webserver freeze issue

---------

Co-authored-by: Marcus Rockwell <marcusrockwell@gmail.com>
2024-06-27 10:25:22 -05:00
dependabot[bot]
abddad8424
Bump braces from 3.0.2 to 3.0.3 in /trick_source/web/dashboard (#1734)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 15:22:52 -05:00
Hong Chen
aab65cf803
Merge pull request #1733 from nasa/Fix-MacOS-CI-dependencies-install
Updated the MacOS CI workflow so that bash won't exit with brew upgrade exits with non-zero exit code.
2024-06-20 13:36:28 -05:00
Hong Chen
23b1c7d74d Updated the MacOS CI workflow so that bash won't exit with brew upgrade exits with non-zero exit code. 2024-06-19 10:03:14 -05:00
Cody Martin
b3c825d026
Fix typo in Realtime Best Practices (#1732)
Remove a duplicate _frame from a plain text version of a filename
2024-06-18 15:05:58 -05:00
Hong Chen
c2c068a04a
Made updates for macOS especially for Apple Silicon. (#1721) 2024-06-05 11:58:03 -05:00
Mrockwell2
10831cee66
Merge pull request #1723 from nasa/1722-documentation-placeholder-instead-of-link
1722 documentation placeholder instead of link
2024-05-29 11:13:44 -05:00
Mrockwell2
e044d1f13a
Fixed links 2024-05-29 10:41:04 -05:00
Mrockwell2
982a434957
Update Simulation-Definition-File.md
Added an actual link instead of a placeholder
2024-05-29 10:29:58 -05:00
Hong Chen
a1d151c4c3
Updated not to always pass disown flag for swig pointer conversion instead base on "own" value of the input object. (#1690) 2024-05-23 10:37:27 -05:00
Pherring04
d997759a6d
Water Clock Cleanup (#1711)
* Cleaned up Water Clock and added C interface support for message subscriptions

* Added support for message publishers in C interface

* Revert "Added support for message publishers in C interface"

This reverts commit e3233891d7.
2024-05-23 10:30:56 -05:00
Pherring04
5219c1d279
message (#1712) 2024-05-23 10:29:53 -05:00
Hong Chen
27e4264c2a
Removed double quotes for port number and added some inline code syntax highlighting with back-ticks. (#1717)
* Removed double quotes for port number and added some inline code syntax highlighting with back-ticks.

* Added one more inline code syntax highlighting.
2024-05-23 10:13:50 -05:00
jmpenn
ee2f824550
Disable unneeded SimObjects from default_trick_sys.sm in Trick exampl… (#1719)
* Disable unneeded SimObjects from default_trick_sys.sm in Trick example sims.

* Take out unit test disable. Add some S_defines I forgot.
2024-05-23 10:12:27 -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