Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixes

- sentry-server.py - The scriptroot is being set as `WorkingDirectory`.

## 2.8.0

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion sentry-cli/integration-test/action.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function RunApiServer([string] $ServerScript, [string] $Uri = $ServerUri)
$result.errFile = New-TemporaryFile

$result.process = Start-Process "python3" -ArgumentList @("$PSScriptRoot/$ServerScript.py", $Uri) `
-NoNewWindow -PassThru -RedirectStandardOutput $result.outFile -RedirectStandardError $result.errFile
-NoNewWindow -PassThru -RedirectStandardOutput $result.outFile -RedirectStandardError $result.errFile -WorkingDirectory $PSScriptRoot

$out = New-Object InvokeSentryResult
$out.ServerStdOut = @()
Expand Down
8 changes: 8 additions & 0 deletions sentry-cli/integration-test/tests/action.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ Describe 'Invoke-SentryServer' {
$result.UploadedDebugFiles() | Should -Be @('file3.dylib', 'file2.so', 'file1.dll')
}

It "collects proguard mapping" {
$result = Invoke-SentryServer {
Param([string]$url)
Invoke-WebRequest -Uri "$url/api/0/projects/org/project/files/dsyms/associate/" -Method Post `
}
Should -ActualValue $result.HasErrors() -BeFalse
}

It "collects envelopes" {
$result = Invoke-SentryServer {
Param([string]$url)
Expand Down