Skip to content

CI: Skip permissions test when running as sudo #33847

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 1 commit into from
Apr 28, 2020

Conversation

TomAugspurger
Copy link
Contributor

Closes #33210

@TomAugspurger TomAugspurger added Testing pandas testing functions or related to the test suite CI Continuous Integration labels Apr 28, 2020
@TomAugspurger TomAugspurger added this to the 1.1 milestone Apr 28, 2020
@TomAugspurger
Copy link
Contributor Author

Is this a known failure?

=================================== FAILURES ===================================

__________________ TestHDFStore.test_append_with_data_columns __________________

[gw0] linux -- Python 3.6.6 /home/travis/miniconda3/envs/pandas-dev/bin/python

self = <pandas.tests.io.pytables.test_store.TestHDFStore object at 0x7fbb644fd588>

setup_path = 'tmp.__PzdfGEaMNt__.h5'

    def test_append_with_data_columns(self, setup_path):
...
            result = store.select(

                "df", "string='foo' and string2='foo' and A>0 and B<0"

            )

            expected = df_new[

                (df_new.string == "foo")

                & (df_new.string2 == "foo")

                & (df_new.A > 0)

                & (df_new.B < 0)

            ]

>           tm.assert_frame_equal(result, expected, check_index_type=False)

E           AssertionError: (None, <17 * BusinessDays>)

Restarting CI to see.

@jbrockmendel
Copy link
Member

Looks like the Travis failure is from one of the newly-implemented freq checks. Should be unrelated. I'll try to track that down.

@WillAyd
Copy link
Member

WillAyd commented Apr 28, 2020

Is chmod(0) even valid? Wonder if we are just using the wrong bit setting and instead shouldn't do something like chmod("u-r")

@TomAugspurger
Copy link
Contributor Author

On my system, that results in a file with these permissions.

----------  1 taugspurger  wheel     0B Apr 28 08:22 a

@WillAyd
Copy link
Member

WillAyd commented Apr 28, 2020 via email

@jbrockmendel
Copy link
Member

could do an os.geteuid() == 0 check?

@TomAugspurger
Copy link
Contributor Author

TomAugspurger commented Apr 28, 2020 via email

@jreback
Copy link
Contributor

jreback commented Apr 28, 2020

this lgtm.

@WillAyd WillAyd merged commit 12c9c62 into pandas-dev:master Apr 28, 2020
@WillAyd
Copy link
Member

WillAyd commented Apr 28, 2020

Thanks @TomAugspurger

jbrockmendel pushed a commit to jbrockmendel/pandas that referenced this pull request Apr 29, 2020
@simonjayhawkins
Copy link
Member

@meeseeksdev backport to 1.0.x

@lumberbot-app
Copy link

lumberbot-app bot commented May 4, 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 12c9c626dc30a8d0f1c2305c3fdf8cc3e9acbcde
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #33847: CI: Skip permissions test when running as sudo'
  1. Push to a named branch :
git push YOURFORK 1.0.x:auto-backport-of-pr-33847-on-1.0.x
  1. Create a PR against branch 1.0.x, I would have named this PR:

"Backport PR #33847 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.

@simonjayhawkins
Copy link
Member

xref #33300 (comment)

rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MacPython/pandas-wheels wheel builds failing
5 participants