Skip to content

Commit

Permalink
[merge] from unstable into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
OneCDOnly committed Oct 12, 2024
2 parents 56c67c5 + d9c7777 commit aa2bdc6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
Binary file modified objects.tar.gz
Binary file not shown.
Binary file modified sherpa-manager.tar.gz
Binary file not shown.
27 changes: 16 additions & 11 deletions support/sherpa-manager.source
Original file line number Diff line number Diff line change
Expand Up @@ -748,13 +748,13 @@ DebugLogEnv()
FuncInit

ShowAsProc 'log env'
DebugInfoMinSepr

if [[ $useropt_show_about = true || $useropt_show_aboutall = true ]]; then
useropt_debug=true
useropt_verbose=true
fi

DebugInfoMinSepr
DebugHardware ok 'NAS model' "$(get_display_name)"
DebugHardware ok CPU "$(HardwareGetCPUInfo)"
DebugHardware ok 'CPU cores' "$r_cpu_cores"
Expand Down Expand Up @@ -890,29 +890,29 @@ DebugLogEnv()
DebugQpkg detect "$(ShowAsPackageName IncreaseTimeouts)" N/A
fi

DebugInfoMinSepr

if [[ $useropt_show_about = true ]]; then
useropt_debug=false
useropt_verbose=false
return
fi

[[ $useropt_show_aboutall = false ]] && DebugInfoMinSepr
RunAndLog "/bin/df -h | /bin/grep '^Filesystem\|^none\|^tmpfs\|ram'" "$r_ramfs_freespace_pathfile"
DebugInfoMinSepr
RunAndLog "/usr/sbin/screen -ls" "$r_screen_sessions_pathfile" '' 1
DebugInfoMinSepr
[[ $useropt_show_aboutall = false ]] && DebugInfoMinSepr
RunAndLog "/usr/sbin/screen -ls | /bin/sed '/^[[:space:]]*$/d'" "$r_screen_sessions_pathfile" '' 1
[[ $useropt_show_aboutall = false ]] && DebugInfoMinSepr
RunAndLog '/usr/bin/free' "$r_ram_freeused_pathfile" '' 1
DebugInfoMinSepr
[[ $useropt_show_aboutall = false ]] && DebugInfoMinSepr
RunAndLog "/bin/grep -i 'out of memory\|oom-killer' /mnt/HDA_ROOT/.logs/kmsg" "$r_oom_log_pathfile" '' 1
DebugInfoMinSepr

if [[ $useropt_show_aboutall = true ]]; then
useropt_debug=false
useropt_verbose=false
return
fi

DebugInfoMinSepr

FuncExit

}
Expand Down Expand Up @@ -2905,7 +2905,7 @@ ShowArgSuggestions()

for arg in "${args_incomplete[@]}"; do
case $arg in
?(de|re)activate|backup|clean|@(dis|en)able|@(dis|en)able-auto-update|reassign|@(re|un)install|?(re)start|restore|rm|sign|stop|upgrade)
?(de|re)activate|backup|clean|@(dis|en)able|@(dis|en)able-auto-update|reassign|@(re|un)install|?(re)start|restore|rm|sign|stop)
DisplayAsProjSynExam "please provide valid $(ShowAsPackages) or a $(ShowAsPackageGroup) after '$arg' like" "$arg installed"
arg_problem=true
useropt_help_basic=false
Expand Down Expand Up @@ -2953,6 +2953,11 @@ ShowArgSuggestions()
arg_problem=true
useropt_help_basic=false
;;
upgrade)
DisplayAsProjSynExam "please provide valid $(ShowAsPackages) or a $(ShowAsPackageGroup) after '$arg' like" "$arg new"
arg_problem=true
useropt_help_basic=false
;;
*)
arg_problem=true
args_remaining+=("$arg")
Expand Down Expand Up @@ -4717,7 +4722,7 @@ GenerateStatusReportTitleLine()

# column 3: package action and result
printf "%$((r_report_column_spacing))s"
a='Previous action (result)'
a='Action (result)'
printf "%-${r_report_qpkg_action_column_width}s" "$a:"

# column 4: package version
Expand Down Expand Up @@ -8055,7 +8060,7 @@ ShowReportStatuses()

if OsIsSupportAutowidthTableColumns; then
[[ $a = true ]] && b=" ($(TextBrightOrange new))"
printf -v c '\n%s\n' "QPKG name:|Status:|Previous action (result):|QPKG version${b}:|Appl. version:|Location:"
printf -v c '\n%s\n' "QPKG name:|Status:|Action (result):|QPKG version${b}:|Appl. version:|Location:"
else
printf -v c '\n%s\n' "$(GenerateStatusReportTitleLine)"
fi
Expand Down
16 changes: 9 additions & 7 deletions workshop/issues.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ Observed issues:
* If IPK install stalls, seconds stalled display is not accurate.
- Need to calculate actual seconds elapsed since stall began, instead of using an accumulator and `sleep 1`.

* If an action fork fails (such as with "unbound variable" error), main loop stalls.
- Must save stderr to file, and exit main loop.
- set trap for SIGERR?

* Will need a new method to detect if QTS 5.2.0 is starting/stopping QPKGs due to async starts/stops.

* Near the end of installing IPKs, monitored download path can remain at non-zero size while packages complete installation.
Expand All @@ -22,14 +18,20 @@ Observed issues:
- QPKG was 'skipped-abort', and is shown as 'skipped' in results.
- TODO: Other QPKGs to be signed were not shown in either list. Must add them to 'skipped-abort' list.

* When aborting sherpa, must also ensure backgrounded procs abort.
- UPDATE: working fine, possibly won't need BG_PROCS_PATH anymore. Test to confirm.

* Function durations can become incorrect when functions with the same name are called recursively.
- Need to make vars holding start-times unique. Maybe measure nest depth? Use epoch time in name?

* QPKG version sort is not correctly sorting version numbers followed by an alpha as later than non-alpha.

# Action stalling

* If an action fork fails (such as with "unbound variable" error), main loop stalls.
- Must save stderr to file, and exit main loop.
- set trap for SIGERR?

* When aborting sherpa, must also ensure backgrounded procs abort.
- UPDATE: working fine, possibly won't need BG_PROCS_PATH anymore. Test to confirm.

# QTS/QuTS App Center

* Removing OMedusa QPKG via sherpa didn't update App Center 'live' (icon remained until App Center was manually refreshed).
Expand Down

0 comments on commit aa2bdc6

Please sign in to comment.