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

can you add a link to showing this #4

Closed
alexec opened this issue Jan 22, 2021 · 16 comments
Closed

can you add a link to showing this #4

alexec opened this issue Jan 22, 2021 · 16 comments

Comments

@alexec
Copy link

alexec commented Jan 22, 2021

No description provided.

@guyarb
Copy link
Owner

guyarb commented Jan 22, 2021

hey @alexec!
Can you elaborate on your request? I didn't understand which link you are talking about, or where to add it

@alexec
Copy link
Author

alexec commented Jan 22, 2021

I'd like to see a build that is using this feature

@guyarb
Copy link
Owner

guyarb commented Jan 23, 2021

Updated the readme, now it contains a link to an example repo.

@guyarb guyarb closed this as completed Jan 23, 2021
@alexec
Copy link
Author

alexec commented Jan 23, 2021

@alexec
Copy link
Author

alexec commented Jan 23, 2021

Any chance you could take a look at my set-up:

argoproj/argo-workflows#4925

I didn't seem to get errors reported.

@guyarb guyarb reopened this Jan 23, 2021
@guyarb
Copy link
Owner

guyarb commented Jan 23, 2021

@alexec , i opened the example repo to be public :)

and it looks like the output of your UI tests are not in the format that go test -json ./... > test.json

can you post the test.json file from your CI?

@alexec
Copy link
Author

alexec commented Jan 23, 2021

maybe it is gotestsum --jsonfile=test.json -- not working - I will investigate

@guyarb
Copy link
Owner

guyarb commented Jan 27, 2021

@alexec do you have any conclusions?

@alexec
Copy link
Author

alexec commented Jan 27, 2021

sorry - I gave up :(

@guyarb
Copy link
Owner

guyarb commented Jan 27, 2021

can you switch the test command line to go test -json ./... > test.json?

@displague
Copy link

displague commented Aug 12, 2021

@guyarb similar experience with https://github.com/equinix/terraform-provider-metal/pull/173/checks?check_run_id=3246845567

image

The errors were not annotated to the PR view. I'm not sure if this would have to be merged first or if the PR introducing golang-test-annotations should have been annotated.

https://github.com/equinix/terraform-provider-metal/pull/173/files

@guyarb
Copy link
Owner

guyarb commented Aug 14, 2021

@displague , I do see the errors were annotated https://github.com/equinix/terraform-provider-metal/actions/runs/1099517484
image
image

did i misunderstand you?

@displague
Copy link

displague commented Aug 14, 2021

@guyarb I see what you mean. I was expecting inline PR comments on failed tests, like https://github.com/reviewdog/reviewdog.

image

Is the problem that the test file/function/lines were not modified in the PR? If they were, perhaps the annotation would appear on that function?

@displague
Copy link

displague commented Aug 17, 2021

Perhaps isaacs/github#284 (comment) is related and actions have no way to comment on lines (tests) that are not included in the PR.

@guyarb
Copy link
Owner

guyarb commented Aug 18, 2021

@displague, indeed when the PR added a failed test it adds preview on the diff (for https://github.com/guyarb/golang-test-annotations-example/pull/1/files)

@guyarb guyarb closed this as completed Oct 6, 2021
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

No branches or pull requests

3 participants