Skip to content

CI: fix feather test #31791

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

Merged
merged 4 commits into from
Feb 8, 2020
Merged

CI: fix feather test #31791

merged 4 commits into from
Feb 8, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

# Encountered in feather 2020-02-07
fr"\[Errno 2\] Failed to open local file '.*does_not_exist\.{fn_ext}'. "
r"Detail: \[errno 2] 没有那个文件或目录"
)
Copy link
Member

Choose a reason for hiding this comment

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

Or we can just stop testing the message here?

Copy link
Member Author

Choose a reason for hiding this comment

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

i would be on board for that, cc @MomIsBestFriend looks like there is a new external_error_raised; is that for roughly this purpose?

Copy link
Member

Choose a reason for hiding this comment

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

i would be on board for that, cc @MomIsBestFriend looks like there is a new external_error_raised; is that for roughly this purpose?

@jbrockmendel Yes, exactly!

@jbrockmendel
Copy link
Member Author

updated to use external_error_raised. Do we want to check anything about the message being reasonable?

@ShaharNaveh
Copy link
Member

updated to use external_error_raised. Do we want to check anything about the message being reasonable?

I don't think we do, as this is an external error message.
But I would like to hear others as well.

@WillAyd WillAyd added the CI Continuous Integration label Feb 8, 2020
@WillAyd WillAyd added this to the 1.0.2 milestone Feb 8, 2020
@WillAyd WillAyd merged commit 6d3cc14 into pandas-dev:master Feb 8, 2020
@WillAyd
Copy link
Member

WillAyd commented Feb 8, 2020

Thanks @jbrockmendel yea I don't think we need to test for 8 different messages!

@lumberbot-app
Copy link

lumberbot-app bot commented Feb 8, 2020

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.0.x
$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 6d3cc14fc52685511329cedf1e11d15651ac6a8e
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #31791: CI: fix feather test'
  1. Push to a named branch :
git push YOURFORK 1.0.x:auto-backport-of-pr-31791-on-1.0.x
  1. Create a PR against branch 1.0.x, I would have named this PR:

"Backport PR #31791 on branch 1.0.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.

@WillAyd
Copy link
Member

WillAyd commented Feb 8, 2020

Hmm I guess that helper isn't available on the 1.0.x branch

@jreback
Copy link
Contributor

jreback commented Feb 8, 2020

why exactly was this merged @WillAyd @jbrockmendel @jorisvandenbossche was this fixing a CI issue?

it is not about testing for the error messages, but the fact that the error messages are different that is extremely troubling. This is de-facto removing legitimate tests.

@WillAyd
Copy link
Member

WillAyd commented Feb 8, 2020

Yea looks to have failed CI

@WillAyd WillAyd mentioned this pull request Feb 8, 2020
@WillAyd
Copy link
Member

WillAyd commented Feb 8, 2020

I think alternately would have to add a 9th error message to test for with current design; maybe should break up and test error message specifically by reader?

@simonjayhawkins
Copy link
Member

msg4 doesn't look like an external message. should external_error_raised fail this? @MomIsBestFriend

@simonjayhawkins
Copy link
Member

not at a computer to check though. so could be external. just looks like one of ours.

@jorisvandenbossche
Copy link
Member

msg4 doesn't look like an external message.

Yes, I think that is the only one raised by ourselves (it's "path_or_buf needs to be a string file path or file-like"). But it's actually also a wrong error message we were testing .. as what is passed is a string file path)

@ShaharNaveh
Copy link
Member

ShaharNaveh commented Feb 8, 2020

msg4 doesn't look like an external message. should external_error_raised fail this? @MomIsBestFriend

@simonjayhawkins tm.external_error_raised is an alias for
pytest.raises(<An exception class>, match=None).

It does not check for whether or not this is an actual external error message.

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

Successfully merging this pull request may close these issues.

7 participants