Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: set a failed canceled job status correctly #3061

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

Closed
wants to merge 25 commits into from

Conversation

Kira-Pilot
Copy link
Member

@Kira-Pilot Kira-Pilot commented Jul 20, 2022

resolves #1374

When a previous job was canceled and that cancellation was unsuccessful, we incorrectly set the job status as canceled. This fix remedies that issue by setting the status as Failed.

@Kira-Pilot Kira-Pilot requested a review from johnstcn July 20, 2022 12:45
@Kira-Pilot Kira-Pilot changed the title set a failed canceled job status correctly fix: set a failed canceled job status correctly Jul 20, 2022
@Kira-Pilot Kira-Pilot marked this pull request as draft July 20, 2022 12:57
mafredri and others added 14 commits July 20, 2022 18:03
We are starting to run into test flakes due to lack of randomness in CI,
this change simply bumps randomness by additional suffix numbers.

See: #3038 (comment)
* chore: Speed up port-forward tests

* chore: Add t.Helper and ensure listener closure on error
Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.9.0 to 1.9.2.
- [Release notes](https://github.com/spf13/afero/releases)
- [Commits](spf13/afero@v1.9.0...v1.9.2)

---
updated-dependencies:
- dependency-name: github.com/spf13/afero
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: Fix statuses breaking line in the UI

* fix: AppLink stories
Considering database load and CI performance during testing, we should
avoid failing too early.
Avoid relying on codecov to manage action step failure, hopefully works
around:
codecov/codecov-action#788
The Go test timeout uses 20m, if we want to get a stack trace, we must
allow the actions worker to run longer than that.
Kira-Pilot and others added 3 commits July 21, 2022 09:46
* fix: Potential deadlock in peer.Channel dc.OnOpen

* fix: Potential send on closed channel

* fix: Improve robustness of waitOpened during close

* chore: Simplify statements

* fix: Improve teardown and timeout of peer tests

* fix: Improve robustness of TestConn/Buffering test

* Update peer/channel.go

Co-authored-by: Steven Masley <[email protected]>
@Kira-Pilot Kira-Pilot marked this pull request as ready for review July 21, 2022 19:22
@johnstcn johnstcn requested a review from a team July 21, 2022 19:24
Two coderd unit tests (TestPatchCancelTemplateVersion/Success and TestPatchCancelWorkspaceBuild) implied erroneously that the job was canceled successfully.

This is not the case, as these unit tests do not include a Provision_Complete response in the input to the
echo provisioner. Now explicitly checking the job error and bumping the force cancel interval to be longer.

Fixes #3083.
@Kira-Pilot Kira-Pilot requested a review from a team as a code owner July 21, 2022 19:42
@Kira-Pilot
Copy link
Member Author

Wow, what a rebase effort. Closing in favor of a cleaner #3101.

@Kira-Pilot Kira-Pilot closed this Jul 21, 2022
@github-actions github-actions bot deleted the failed-canceled-job/kira-pilot branch February 4, 2023 20:04
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.

Error while canceling job should result in failed; instead results in canceled
7 participants