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: make collect-profiles.sh work on mac #6673

Merged
merged 2 commits into from
Sep 24, 2019
Merged

Conversation

olizilla
Copy link
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
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
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