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

Context needs to be better passed through to several parts of Zarf so that interrupts can be implemented properly #2594

Open
AustinAbro321 opened this issue Jun 6, 2024 · 0 comments
Labels
needs-investigation For triage issues that need more research.

Comments

@AustinAbro321
Copy link
Contributor

Many parts of Zarf do not properly handle context properly. Since #2567 was merged in ctrl-c may not interrupt as a user would expect in several situations.
At least

  • pulling doesn't get interrupted
  • During waits on deploy rather than exiting the Zarf binary interrupting exits just the current wait
  • Interrupts work on-create actions, but give a message failed after 0 retries rather than package creation canceled
AustinAbro321 pushed a commit that referenced this issue Jun 7, 2024
…2598)

## Description

This changes the behavior so that the second SIGINT signal immediately
exits. This is useful if a process is not quitting in context cancel or
if it is taking too long to quit.

## Related Issue

Relates to #2594 

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/.github/CONTRIBUTING.md#developer-workflow)
followed
lucasrod16 pushed a commit that referenced this issue Jun 7, 2024
## Description

This change adds contexts to packager functions to enable them to be
cancelled.

## Related Issue

Relates to #2594

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/.github/CONTRIBUTING.md#developer-workflow)
followed

Co-authored-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
@salaxander salaxander added this to Zarf Jul 22, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Zarf Jul 22, 2024
@salaxander salaxander removed the status in Zarf Jul 22, 2024
AustinAbro321 pushed a commit that referenced this issue Jul 23, 2024
…2598)

## Description

This changes the behavior so that the second SIGINT signal immediately
exits. This is useful if a process is not quitting in context cancel or
if it is taking too long to quit.

## Related Issue

Relates to #2594

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/.github/CONTRIBUTING.md#developer-workflow)
followed

Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
AustinAbro321 added a commit that referenced this issue Jul 23, 2024
## Description

This change adds contexts to packager functions to enable them to be
cancelled.

## Related Issue

Relates to #2594

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/.github/CONTRIBUTING.md#developer-workflow)
followed

Co-authored-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
@salaxander salaxander moved this to Triage in Zarf Sep 10, 2024
@mkcp mkcp added the needs-investigation For triage issues that need more research. label Feb 20, 2025
@mkcp mkcp moved this from Triage to Backlog in Zarf Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-investigation For triage issues that need more research.
Projects
Status: Backlog
Development

No branches or pull requests

3 participants