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

Status code docs improvements #8186

Merged
merged 4 commits into from
Jan 27, 2024
Merged

Status code docs improvements #8186

merged 4 commits into from
Jan 27, 2024

Conversation

sschuberth
Copy link
Member

Please have a look at the individual commit messages for the details.

@sschuberth sschuberth requested a review from a team as a code owner January 27, 2024 07:38
Copy link

codecov bot commented Jan 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e9f36c4) 67.16% compared to head (8866f90) 67.16%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8186   +/-   ##
=========================================
  Coverage     67.16%   67.16%           
  Complexity     2049     2049           
=========================================
  Files           357      357           
  Lines         17158    17158           
  Branches       2461     2461           
=========================================
  Hits          11525    11525           
  Misses         4611     4611           
  Partials       1022     1022           
Flag Coverage Δ
funTest-docker 66.25% <ø> (ø)
funTest-non-docker 33.96% <ø> (ø)
test 36.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -28,7 +28,8 @@ final DOCKER_BUILD_ARGS = '--build-arg http_proxy=$http_proxy --build-arg https_
// Disable the entry point to work around https://issues.jenkins-ci.org/browse/JENKINS-51307.
final DOCKER_RUN_ARGS = '-e http_proxy -e https_proxy --entrypoint=""'

// The status code ORT commands return for failures (like rule violations), not errors (like existing output files).
// The status code ORT CLI commands return at a minimum for failures (like rule violations), not errors (like existing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or: "The minimum status code ORT CLI commands return..."

@@ -108,3 +108,9 @@ const val ORT_EVALUATOR_RULES_FILENAME = "evaluator.rules.kts"
* The name of the ORT notifier script.
*/
const val ORT_NOTIFIER_SCRIPT_FILENAME = "notifier.notifications.kts"

/**
* The status code ORT CLI commands return at a minimum for failures (like rule violations), not errors (like existing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"The minimum status code..."

*/
val severeIssueThreshold: Severity = Severity.WARNING,

/**
* The threshold from which on rule violations count as severe.
* The threshold from which on rule violations count as severe. Severe issues cause the status code on exit of the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Sever rule violations..."

This aligns with the constant in the `Jenkinsfile`.

Signed-off-by: Sebastian Schuberth <[email protected]>
Put this next to other constants, and align to them by adding the "ORT_"
prefix.

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth enabled auto-merge (rebase) January 27, 2024 10:02
@sschuberth sschuberth requested a review from a team January 27, 2024 10:02
@sschuberth sschuberth merged commit c00cbbc into main Jan 27, 2024
21 checks passed
@sschuberth sschuberth deleted the exit-code-docs branch January 27, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants