Skip to content

fix: make collect-profiles.sh work on mac#6673

Merged
Stebalien merged 2 commits intomasterfrom
collect-profiles-on-mac
Sep 24, 2019
Merged

fix: make collect-profiles.sh work on mac#6673
Stebalien merged 2 commits intomasterfrom
collect-profiles-on-mac

Conversation

@olizilla
Copy link
Copy Markdown
Member

The version of date that ships with darwin does not support the -Iseconds flag.

Use a pattern with date to achieve the same thing but should have better cross platform support.

Also, makes collect-profiles.sh executable.

License: MIT
Signed-off-by: Oli Evans oli@tableflip.io

The version of `date` that ships with darwin does not support the `-Iseconds` flag.

Use a pattern with `date` to achieve the same thing but should have better cross platform support.

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
@github-actions github-actions bot requested a review from djdv September 24, 2019 10:10
With an empty API headers config like

```js
	"API": {
		"HTTPHeaders": {}
	},
```

running collect-profiles.sh shows connection errors when trying to POST to `/debug/pprof-mutex/` end point when using `localhost`.

The same errors do not occur when using `127.0.0.1`

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
Copy link
Copy Markdown
Contributor

@djdv djdv left a comment

Choose a reason for hiding this comment

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

"timestamp looks the same on my machines" seal-of-approval.
(MSYS2's GNU date, both are supported; OpenIndiana's date, only this PR's format is supported)
localhost causing problems where the loopback ip doesn't, seems odd to me but it's probably better to have it this way anyway.

Copy link
Copy Markdown
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Thanks!

@Stebalien Stebalien merged commit e921121 into master Sep 24, 2019
@Stebalien Stebalien deleted the collect-profiles-on-mac branch September 24, 2019 14:48
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.

3 participants