Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ€” are these exit codes random or do they have meaning ❓ #20

Open
1 task done
reactive-firewall opened this issue Feb 24, 2022 · 2 comments
Open
1 task done
Assignees
Labels
Bash Lang Changes to the BASH scripts documentation Improvements or additions to documentation enhancement New feature or request

Comments

@reactive-firewall
Copy link
Owner

reactive-firewall commented Feb 24, 2022

πŸ€” are these codes random or do they have meaning ❓
- is that meaning documented? where? (nope not documented....yet)

Originally posted by @reactive-firewall in #11 (comment)

  • document it somewhere
@reactive-firewall reactive-firewall added documentation Improvements or additions to documentation enhancement New feature or request question Further information is requested Bash Lang Changes to the BASH scripts and removed question Further information is requested labels Feb 24, 2022
@reactive-firewall reactive-firewall self-assigned this Mar 1, 2022
reactive-firewall added a commit that referenced this issue Mar 8, 2022
Initial Stable Base

 - b93f1a6 & 3bea4e8 Initial Setup Scripts and Configs
 - 7758e33 Initial `Makefile`...
 - c03fe27 Initial `README` Document
 - 73f2ce1 Initial requirements file (for python dependancies)
 - 35bd95c Initail `CI` settings for all the things πŸŽ‰
 - 60a5685 & a182d34 & 067a294 Initial Tests
   + New project Github Actions for CI testing #10
   + New Minimal Acceptance Testing 731726b
   + New user-install option 53e8a8f
   + Fix for project Build Testing
   + Fix for project Testing Coverage 60dfe04
   + Fix for User-Install Testing ( see #26 )
   + ...and More ( see #1 & #15 & #17 & #29 )

 - 8fc88a8 Cleaned up numerous anti-patterns
 - 4354c2c improved stability of `make clean`
 - 5c94cc7 fix for typos
 - 241922e Fixes for cli argument wrangling ( see #28 & #34 )
 - 7d03fef & 8ba92c3 & b49aee5 Reduced some complexity in test utilities
 - 1ddaa5a Renamed tests by new convention ( see #34 )
 - ...and improved stability throughout project

 - 4ec2e21 & fe25e79 & d7a8ea5 Dropped Travis-CI support due to paywall.
 - 0698978 Python 3.10+ not stable at this time ( see #29 )
 - fd8772e (BREAK-FIX) EOL python 2.x (and so deprecates unstable `setup.py test`)

Initial Point of passing initial tests and such (caveat: low code-coverage)
- [x] Closes #2
- [x] Closes #3
- [x] Closes #4
- [x] Closes #6
- [x] Closes #7
- [x] Closes #8
- [x] Resolved #9
- [x] Closes #12
- [x] Opens #13 🏷️
- [x] Closes #14
- [x] Closes #16
- [x] Closes #17
- [x] Opens #18 🏷️
- [x] Closes #21
- [x] Closes #22
- [x] Closes #23
- [x] Opens #24 🏷️
- [x] Opens #25 🏷️
  - [x] Closes #19
  - [x] Opens #20 🏷️
  - [x] Closes #28
  - [x] Closes #15
- [x] Opens #26 🏷️
- [x] Opens #27 🏷️
- [x] Closes #29
- [x] Closes #30
- [x] Opens #31 🏷️
- [x] Opens #32 🏷️
- [x] Opens #33
- [x] Closes #34
- [x] Opens #35 🏷️
- [x] Closes #36
@reactive-firewall
Copy link
Owner Author

reactive-firewall commented Apr 25, 2022

Following the scaling principle of "there is only 3 useful quantities for things: none, one, or many" leads to the following base definitions:

required return code meanings

For Multicast Project

  • 0 is the default and implies success, and means the process has essentially (or actually) returned nothing (or None)
  • 1 is used when a single result is returned (caveat: functions may return a single tuple instead of None to indicate exit code 1 by returning a boolean success value, and result (which may also be encapsulated as an iteratable if needed) )
  • 2 is used to indicate a value and reason are returned (caveat: functions may return a single tuple with a single value and reason and the value can be a tuple)
  • -1 is used to mean many of unspecified length and otherwise functions as 1

required CLI exit code meanings

Also for Multicast Project

  • 0 success
  • 1 none-sucsess - and is often accompanied by warnings or errors
  • 2 > failure of specific reason

Everything Else exit code meanings

not important to Multicast Project

Other codes (such as 126) may or may not have meanings (such as skip) but are not handled within the scope of the Multicast Project at this time.

@reactive-firewall reactive-firewall linked a pull request May 2, 2022 that will close this issue
9 tasks
@reactive-firewall reactive-firewall moved this from To do to In progress in Multicast Project May 2, 2022
@reactive-firewall
Copy link
Owner Author

reactive-firewall commented May 2, 2022

πŸ€” posix exit codes are zero for no-error and non-zero for errors but also limit max exit code to 255.

πŸ€” also consider common linux exit codes

  • should support codes like 128+N and 2 where possible

@reactive-firewall reactive-firewall removed a link to a pull request May 2, 2022
9 tasks
@reactive-firewall reactive-firewall moved this from In progress to To do in Multicast Project May 2, 2022
@reactive-firewall reactive-firewall moved this from To do to Regressions in Multicast Project May 4, 2022
@reactive-firewall reactive-firewall moved this from Regressions to Blocked, Stuck, or Lost in Multicast Project May 27, 2022
reactive-firewall added a commit that referenced this issue Aug 28, 2024
### ChangeLog:

Changes in file README.md:
 # ... probably will return with nothing outside a handler function in a loop
reactive-firewall added a commit that referenced this issue Aug 28, 2024
### ChangeLog:

Changes in file tests/check_cc_lines:
 Unknown Changes

Changes in file tests/check_codecov:
 else
 for i in 1 256 512 ; do

Changes in file tests/check_codecov_regression:
 function cleanup() {
 if [[ (${EXIT_CODE} -eq 0) ]] ; then

Changes in file tests/check_integration_coverage:
 ulimit -t 60

Changes in file tests/check_spelling:
 Unknown Changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bash Lang Changes to the BASH scripts documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: Resolved
Multicast Project
Blocked, Stuck, or Lost
Development

No branches or pull requests

1 participant