Skip to content

Conversation

@ceb8
Copy link
Member

@ceb8 ceb8 commented Nov 16, 2022

I'm starting this draft now so there is a place to discuss the remote test failures and solutions.

Fixes

  • Esa hubble
    • Added a skip_slow marker to test_download_product
  • Esa jwst
    • Three exception tests in test_query_target_error fail because the wrong exception is raised. I could not find an easy solution, so I commented out the tests and captured the issue here: ESA JWST remote test failues #2590
  • Nvas
    • Updated the test_get_images test to be a faster running query, and marked it to ignore the FITS file warning (this has nothing to do with the functioning of the module)

@codecov
Copy link

codecov bot commented Nov 16, 2022

Codecov Report

Merging #2589 (59f36d8) into main (a5cea1d) will not change coverage.
The diff coverage is n/a.

❗ Current head 59f36d8 differs from pull request most recent head 908f34b. Consider uploading reports for the commit 908f34b to get more accurate results

@@           Coverage Diff           @@
##             main    #2589   +/-   ##
=======================================
  Coverage   64.19%   64.19%           
=======================================
  Files         130      130           
  Lines       16881    16881           
=======================================
  Hits        10836    10836           
  Misses       6045     6045           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bsipocz
Copy link
Member

bsipocz commented Nov 16, 2022

Some of these are duplicates for the previous pr, could you maybe rebase on top of that?

@ceb8
Copy link
Member Author

ceb8 commented Nov 16, 2022

@bsipocz Sigh, didn't notice your PR. Should I rebase, or just close this one and work on yours?

@bsipocz
Copy link
Member

bsipocz commented Nov 16, 2022

I would go for a quick merge on that one and a rebase here. We never get rid of all of the failures in one PR, so incremental is better for this than keeping things open for a long time.

@ceb8
Copy link
Member Author

ceb8 commented Nov 16, 2022

@bsipocz Alright, poke me when you've merged yours and I will rebase.

@bsipocz
Copy link
Member

bsipocz commented Nov 16, 2022

@ceb8 - it's merged.

with pytest.raises(AttributeError):
alma.is_proprietary('uid://NON/EXI/STING')

@pytest.mark.skipif("SKIP_SLOW")
Copy link
Member

Choose a reason for hiding this comment

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

It would be better to use the slow marker introduced in pytest-astropy version 0.10.0. See also #2420.

esa_hubble = ESAHubble()
c = coordinates.SkyCoord("00h42m44.51s +41d16m08.45s", frame='icrs')
temp_file = self.temp_folder.name + "/cone_search_m31_5.vot"
temp_file = self.temp_folder.name + "/cone_search_m31_5.vot.gz"
Copy link
Member

Choose a reason for hiding this comment

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

Does this work on Windows?

@ceb8
Copy link
Member Author

ceb8 commented Nov 17, 2022

@eerovaher This PR is marked as draft because it is not ready for a detailed review, please hold off on detailed comments.

@bsipocz
Copy link
Member

bsipocz commented Nov 17, 2022

@ceb8 - in the OP you mention unclosed sockets. I believe I added those to the filtered exceptions already, do you still see them? (and they come from all over the place, bs4, standard library parts, pyvo, astropy, so I don't think we can do much about them this hight up the foodchain)

@bsipocz
Copy link
Member

bsipocz commented Nov 17, 2022

Added a skip_slow marker to test_retrieve_data because it involved a download estimated at 30 min

I don't see this one being anywhere this slow (but alma tests are in fact somewhat flaky and we have a few issues open that they are the cause for the GHA timeouts we sometimes see), neither in cron nor locally (https://github.com/astropy/astroquery/actions/runs/3495228393/jobs/5851757125#step:5:23845). So I would suggest opening a separate issue for it, and tag Adam and Adrian as something may be genuinely wrong.

@ceb8 ceb8 marked this pull request as ready for review November 28, 2022 16:22
@bsipocz
Copy link
Member

bsipocz commented Nov 28, 2022

@ceb8 - This has evolved a lot due to changes in main, could you squash all into one commit it basically got one fix left for nvas?

@ceb8
Copy link
Member Author

ceb8 commented Nov 29, 2022

@bsipocz done

@bsipocz bsipocz merged commit cfae8f8 into astropy:main Nov 29, 2022
@bsipocz
Copy link
Member

bsipocz commented Nov 29, 2022

Thanks @ceb8!

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.

3 participants