Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
9a1c0498
Commit
9a1c0498
authored
6 years ago
by
Matthew McGill
Browse files
Options
Downloads
Patches
Plain Diff
thanos integration
Former-commit-id: fdd813fcf1462d6f226e15888523f83476b59812
parent
3fced135
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/ps_analyze.sh
+18
-1
18 additions, 1 deletion
tools/ps_analyze.sh
with
18 additions
and
1 deletion
tools/ps_analyze.sh
+
18
−
1
View file @
9a1c0498
...
...
@@ -557,7 +557,7 @@ perform_step()
if
[
"
$thanos_res
"
=
"ERR_INVALID_CMD"
]
;
then
echo
Internal Transform_Step plugin architecture error.
echo
Exiting ps_analyze early.
echo
Unrecognized EXECUTE_STEP command.
Exiting ps_analyze early.
exit
-1
elif
[
"
$thanos_res
"
=
"STEP_UNSUPPORTED"
]
;
then
command_exit
=
127
# command not found
...
...
@@ -1023,6 +1023,23 @@ output_pipe="thanos_output"
$SECURITY_TRANSFORMS_HOME
/plugins_install/thanos.exe
$input_pipe
$output_pipe
&
thanos_pid
=
$!
# set thanos execution mode
if
[
!
-z
"
$DEBUG_STEPS
"
]
;
then
printf
"SET_MODE DEBUG"
>
$input_pipe
elif
[
!
-z
"
$VERBOSE
"
]
;
then
printf
"SET_MODE VERBOSE"
>
$input_pipe
else
printf
"SET_MODE DEFAULT"
>
$input_pipe
fi
read
-r
mode_set_res <
$output_pipe
if
[
"
$mode_set_res
"
!=
"MODE_SET_OK"
]
;
then
echo
Internal Transform_Step plugin architecture error.
echo
Mode
set
failed. Exiting ps_analyze early.
exit
-1
fi
# Make sure thanos is always exited
function
exit_thanos
{
# will do the job for emergency exits
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment