-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
gateway: /version tests, add CurrentCommit #2001
Conversation
Some of these CircleCI failures are horrible :/
None look related to this PR. Damn, we really need to sort this out. |
yeah, the random CI failures have gotten steadily worse in the past few weeks... :/ on topic: I think adding this to the version endpoint should be fine |
I have a better idea, let's remove |
Output is nice and machine readable, plus we can kill some code
|
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
mmm, the version endpoint on the gateway is something i wanted for ease of debugging purposes. i'd prefer to keep it there |
Same, I'd like to get the version running on IPFS.io .... |
What I mean is, the API is accessible via the Gateway anyhow, so it's |
I'll just do both |
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
6b96594
to
9d0c3f5
Compare
Ah, I'm happy with either or both, as long as I can hit them on ipfs.io:80
...
|
This LGTM |
yeah i want to keep both too. |
gateway: /version tests, add CurrentCommit
LGTM |
!! @lgierth as of this commit, 9beebc9, the test file needs to be updated too. In particular, https://github.com/ipfs/go-ipfs/blob/9beebc9779a765a567b20e5ac9915467685802e9/test/sharness/t0110-gateway.sh#L114, |
It doesn't look like it was even run... :/ |
hmmm is that not running then? |
I'm not 100% sure this is a good idea, but I though I'd put it up for discussion. Chatted about this briefly with @harlantwood, and think it's useful.
Need to build with
make build
so thatrepo/config.CurrentCommit
gets set, otherwise it'll just be an empty string.