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

cli: add exit code error for timeout await expiration #2501

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

AliceInHunterland
Copy link
Contributor

A new error code is added for awaiting timeout expiration.
Closes [#2380]

@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #2501 (6bf3c82) into master (66bc5b2) will increase coverage by 0.00%.
Report is 4 commits behind head on master.
The diff coverage is 0.00%.

❗ Current head 6bf3c82 differs from pull request most recent head 3b52b93. Consider uploading reports for the commit 3b52b93 to get more accurate results

@@           Coverage Diff           @@
##           master    #2501   +/-   ##
=======================================
  Coverage   29.68%   29.69%           
=======================================
  Files         404      404           
  Lines       30711    30711           
=======================================
+ Hits         9117     9119    +2     
+ Misses      20825    20823    -2     
  Partials      769      769           
Files Changed Coverage Δ
cmd/neofs-adm/internal/modules/morph/initialize.go 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

cmd/neofs-cli/internal/common/exit.go Show resolved Hide resolved
cmd/neofs-cli/modules/container/create.go Outdated Show resolved Hide resolved
cmd/neofs-cli/internal/common/exit.go Outdated Show resolved Hide resolved
cmd/neofs-cli/internal/common/exit.go Outdated Show resolved Hide resolved
cmd/neofs-cli/internal/common/exit.go Outdated Show resolved Hide resolved
cmd/neofs-cli/internal/common/exit.go Outdated Show resolved Hide resolved
cmd/neofs-cli/modules/container/create.go Outdated Show resolved Hide resolved
@AliceInHunterland AliceInHunterland force-pushed the feature/2380-cli-exit-codes branch 2 times, most recently from 531ffb1 to d91ec90 Compare August 14, 2023 13:40
Copy link
Contributor

@cthulhu-rider cthulhu-rider left a comment

Choose a reason for hiding this comment

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

LGTM

@roman-khimov do we need an issue to adopt our tests to this behavior?

@cthulhu-rider
Copy link
Contributor

Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

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

We'll need a test for this exit code, but existing tests will likely work just fine (IIRC they don't care about particular exit codes). If there are any appropriate tests already, then yes, we just need to adjust them to check for this new code.

cmd/neofs-cli/internal/common/exit.go Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
cmd/neofs-cli/modules/container/create.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
docs/cli-return-codes.md Outdated Show resolved Hide resolved
cmd/neofs-cli/internal/common/exit.go Show resolved Hide resolved
@AliceInHunterland AliceInHunterland force-pushed the feature/2380-cli-exit-codes branch 2 times, most recently from 77a8952 to d30ff11 Compare August 17, 2023 07:36
CHANGELOG.md Outdated Show resolved Hide resolved
cmd/neofs-cli/modules/container/set_eacl.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@AliceInHunterland AliceInHunterland force-pushed the feature/2380-cli-exit-codes branch 2 times, most recently from 65c5690 to d82eb0d Compare August 17, 2023 13:15
README.md Outdated Show resolved Hide resolved
docs/cli-return-codes.md Outdated Show resolved Hide resolved
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
@roman-khimov roman-khimov merged commit e979a59 into master Aug 18, 2023
8 checks passed
@roman-khimov roman-khimov deleted the feature/2380-cli-exit-codes branch August 18, 2023 18:42
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.

4 participants