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

Attach failing plots to CI results #1587

Merged
merged 5 commits into from
Jan 19, 2021
Merged

Conversation

ivirshup
Copy link
Member

@ivirshup ivirshup commented Jan 14, 2021

If plots fail on CI, this should let us see the expected, actual, and diff through azure. Hopefully It works!

I think this could make debugging plotting issues much easier. Here's an example of what the results look like:

image

Current issue, if tests are run in parallel, this does not work (pytest-dev/pytest-nunit#40), which is not an immediate problem for CI, but limits applicability for local usage. I believe this is an issue with this particular pytest plugin, not necessarily this strategy.

@ivirshup
Copy link
Member Author

ivirshup commented Jan 17, 2021

yes, they are annoying particularly because is not possible to actually check why a test failed on the server while passes locally.

@fidelram, from your comment (#1551 (comment)), makes me think you'd like to enable this? If you okay this, all this needs to be ready to merge is:

  • Figure out where result xml should live
  • .gitignore update
  • Remove failing test (just there as an example)
  • Document where to find this stuff

@fidelram
Copy link
Collaborator

This is great Isaac! Very welcome feature. Took me a while to find the 'attachments' in the azure webpage.

Regarding the location or results.xml, I honestly don't have an opinion were to locate it.

@ivirshup
Copy link
Member Author

Great!

Took me a while to find the 'attachments' in the azure webpage

I'll document this!

@ivirshup ivirshup merged commit 5fc12f4 into scverse:master Jan 19, 2021
@ivirshup
Copy link
Member Author

ivirshup commented Mar 1, 2021

@meeseeksdev backport to 1.7.x

@lumberbot-app
Copy link

lumberbot-app bot commented Mar 1, 2021

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
$ git checkout 1.7.x
$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 5fc12f4a918e21f0c57937b787d52040db046f01
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #1587: Attach failing plots to CI results'
  1. Push to a named branch :
git push YOURFORK 1.7.x:auto-backport-of-pr-1587-on-1.7.x
  1. Create a PR against branch 1.7.x, I would have named this PR:

"Backport PR #1587 on branch 1.7.x"

And apply the correct labels and milestones.

Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon!

If these instruction are inaccurate, feel free to suggest an improvement.

ivirshup added a commit to ivirshup/scanpy that referenced this pull request Mar 3, 2021
ivirshup added a commit that referenced this pull request Mar 3, 2021
* Backport PR #1587: Attach failing plots to CI results

* remove black check
@gokceneraslan
Copy link
Collaborator

@ivirshup do you know why are there sometimes three:

image

and sometimes two plots:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants