You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2022/11/15 03:32:45 UTC
[skywalking-infra-e2e] branch main updated: Disable batch mode by default, add it to GHA and enable by default (#93)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git
The following commit(s) were added to refs/heads/main by this push:
new 964ede1 Disable batch mode by default, add it to GHA and enable by default (#93)
964ede1 is described below
commit 964ede199fe199e166920169dc5f8c9b214cfac5
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Tue Nov 15 11:32:39 2022 +0800
Disable batch mode by default, add it to GHA and enable by default (#93)
---
action.yaml | 5 +++++
commands/root.go | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/action.yaml b/action.yaml
index 9d32c0b..9437c5a 100644
--- a/action.yaml
+++ b/action.yaml
@@ -24,6 +24,10 @@ inputs:
log-dir:
description: The container logs directory
required: false
+ batch-mode:
+ description: Whether to run in batch mode, all interactive operations are disabled
+ required: false
+ default: 'true'
runs:
using: "composite"
steps:
@@ -98,5 +102,6 @@ runs:
run: |
e2e run \
-c "${{ inputs.e2e-file }}" \
+ --batch-mode "${{ inputs.batch-mode }}" \
-w "${{ steps.e2e-dir-generator.outputs.work }}" \
-l "${{ steps.e2e-dir-generator.outputs.log-case }}"
diff --git a/commands/root.go b/commands/root.go
index 4e3b463..1fec787 100644
--- a/commands/root.go
+++ b/commands/root.go
@@ -93,8 +93,9 @@ func Execute() error {
Root.PersistentFlags().StringVarP(&util.WorkDir, "work-dir", "w", "~/.skywalking-infra-e2e", "the working directory for skywalking-infra-e2e")
Root.PersistentFlags().StringVarP(&util.LogDir, "log-dir", "l", "~/.skywalking-infra-e2e/logs", "the container logs directory for environment")
Root.PersistentFlags().StringVarP(&util.CfgFile, "config", "c", constant.E2EDefaultFile, "the config file")
- Root.PersistentFlags().BoolVarP(&util.BatchMode, "batch-mode", "B", true,
- "whether to output in batch mode, if false, the output will be printed in real time. This option is not valid in concurrency mode.")
+ Root.PersistentFlags().BoolVarP(&util.BatchMode, "batch-mode", "B", false,
+ `whether to run in batch mode, if true, all interactive operations are disabled, including real-time progress bar.
+This option is always enabled in concurrency mode and in our GitHub Actions.`)
return Root.Execute()
}