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

fix(api): avoid panic if app does not exist #4963

Merged
merged 3 commits into from
Feb 6, 2020
Merged

fix(api): avoid panic if app does not exist #4963

merged 3 commits into from
Feb 6, 2020

Conversation

yesnault
Copy link
Member

@yesnault yesnault commented Feb 6, 2020

/usr/local/go/src/runtime/panic.go:679 +0x1b2
github.com/ovh/cds/engine/api.(*API).postResyncPRAsCodeHandler.func1(0x3110ce0, 0xc002caa1e0, 0x31055a0, 0xc002362440, 0xc001eece00, 0xc001358d90, 0x3110ce0)
/tmp/QnVpbGQgYW5kIFBhY2thZ2UgQWxs/run/engine/api/ascode.go:199 +0x5eb

Signed-off-by: Yvonnick Esnault yvonnick.esnault@corp.ovh.com

/usr/local/go/src/runtime/panic.go:679 +0x1b2
github.com/ovh/cds/engine/api.(*API).postResyncPRAsCodeHandler.func1(0x3110ce0, 0xc002caa1e0, 0x31055a0, 0xc002362440, 0xc001eece00, 0xc001358d90, 0x3110ce0)
	/tmp/QnVpbGQgYW5kIFBhY2thZ2UgQWxs/run/engine/api/ascode.go:199 +0x5eb

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
engine/api/ascode.go Outdated Show resolved Hide resolved
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
engine/api/ascode.go Outdated Show resolved Hide resolved
@ovh-cds
Copy link
Collaborator

ovh-cds commented Feb 6, 2020

CDS Report build-all-cds#12342.0 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✔
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✔
    • Test SDK ✔
    • Test SDK Rust ✔
    • Test UI ✔
  • Package
    • Docker ✔
    • Docs ✔
  • Integration
    • Docker Compose Tests ✔
    • Helm Tests -
    • Standalone Tests ✘

@ovh ovh deleted a comment from ovh-cds Feb 6, 2020
@yesnault yesnault merged commit 1f44f4a into master Feb 6, 2020
@richardlt richardlt deleted the ye-fix-panic branch February 18, 2020 08:24
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.

7 participants