Tests fail when using fish (and possibly other shells)
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- fish, go
- 領域
- cli, testing-qa
調査の方向性
cmd/platform/deploy_test.go から始め、特に TestDeployCommand_DeployHook と 294 行目および 296 行目の失敗しているケースを確認してください。fish で go test ./... を実行し、これらのテストで使用されているシェル構文と期待されるメッセージを調べ、deploy hook のテストがシェル固有の失敗なしに通過したら作業完了とします。
索引モデルが issue の本文から書いたものです。
説明
Description
When attempting to run tests under fish, the following errors are incorrectly thrown:
--- FAIL: TestDeployCommand_DeployHook (11.06s)
--- FAIL: TestDeployCommand_DeployHook/fails_to_execute_an_unknown_script_path (2.31s)
deploy_test.go:294:
Error Trace: github.com/slackapi/slack-cli/cmd/platform/deploy_test.go:294
Error: Should be true
Test: TestDeployCommand_DeployHook/fails_to_execute_an_unknown_script_path
--- FAIL: TestDeployCommand_DeployHook/echos_stderr_output_to_standard_err (2.20s)
deploy_test.go:296:
Error Trace: github.com/slackapi/slack-cli/cmd/platform/deploy_test.go:296
Error: Received unexpected error:
Error running 'Deploy' command: exit status 127 (sdk_hook_invocation_failed)
Suggestion
Run `platform.test doctor` to check that your system dependencies are up-to-date.
Test: TestDeployCommand_DeployHook/echos_stderr_output_to_standard_err
FAIL
FAIL github.com/slackapi/slack-cli/cmd/platform 11.953s
This seems to be due to a dependency on particular shell syntax/messages in the tests.
Version
Using slack-cli v3.15.0
OS Info
Arch Linux (under WSL2)
Steps to reproduce:
Share the commands to run, source code, and project settings:
- Build.
go test ./...
Expected result:
I expected the tests to pass.
Actual result:
The tests failed, as shown above.
Requirements
- I've read and understood the Contributing guidelines and have done my best effort to follow them.
- I've read and agree to the Code of Conduct.
- I've searched for any related issues and avoided creating a duplicate issue.
- 主要言語
- Go
- スター
- 305
- フォーク
- 46
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 23
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
slackapi/slack-cli のほかの issue
-
Installer aborts on an existing same-named `slack` binary; prefer install + warning over hard abort オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug build release
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
area:bolt-python bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
enhancement semver:minor
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
code health
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
slackapi/slack-cli の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
-
enhancement needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
kind/cleanup
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
kubernetes-sigs/kueue#15947 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sympozium-ai/sympozium#627 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100