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

Fix sporadic buildbot failures for test_mailbox #61266

Closed
jkloth opened this issue Jan 28, 2013 · 6 comments
Closed

Fix sporadic buildbot failures for test_mailbox #61266

jkloth opened this issue Jan 28, 2013 · 6 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@jkloth
Copy link
Contributor

jkloth commented Jan 28, 2013

BPO 17064
Nosy @jkloth, @bitdancer
Files
  • test_mailbox.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2013-02-11.15:15:46.150>
    created_at = <Date 2013-01-28.17:14:19.519>
    labels = ['type-bug', 'tests']
    title = 'Fix sporadic buildbot failures for test_mailbox'
    updated_at = <Date 2013-02-11.15:15:46.148>
    user = 'https://github.com/jkloth'

    bugs.python.org fields:

    activity = <Date 2013-02-11.15:15:46.148>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-02-11.15:15:46.150>
    closer = 'r.david.murray'
    components = ['Tests']
    creation = <Date 2013-01-28.17:14:19.519>
    creator = 'jkloth'
    dependencies = []
    files = ['28882']
    hgrepos = []
    issue_num = 17064
    keywords = ['patch']
    message_count = 6.0
    messages = ['180862', '180864', '180868', '180875', '181896', '181897']
    nosy_count = 3.0
    nosy_names = ['jkloth', 'r.david.murray', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue17064'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3', 'Python 3.4']

    @jkloth
    Copy link
    Contributor Author

    jkloth commented Jan 28, 2013

    Attached is an attempt at fixing the sporadic failures of test_mailbox on the AMD64 Windows buildbot.

    It fails due to access errors on some directories which leads me to believe the helper functions in test.support should fix the problem.

    @jkloth jkloth added the tests Tests in the Lib/test dir label Jan 28, 2013
    @bitdancer
    Copy link
    Member

    I think the support functions just ignore errors. Isn't this going to continue to leave garbage on the buildbot filesystem without fixing the underlying problem? I wonder if this is a variation on the usual Windows access errors, in which case perhaps that is the best we can do...

    @jkloth
    Copy link
    Contributor Author

    jkloth commented Jan 28, 2013

    Actually, the support functions (as of 3.3) attempt to work around the access errors. They attempt to wait (to a point) for a successful operation before returning to the caller. See bpo-15496 for details.

    It is usually the case that the previous operation has not yet finished as to the cause of the access error.

    @bitdancer
    Copy link
    Member

    Ah, excellent. I had missed that change.

    This looks good then. Hopefully it will work :)

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Feb 11, 2013

    New changeset bbeff2958cc5 by R David Murray in branch '3.2':
    bpo-17064: fix sporadic permission errors in test_mailbox on windows.
    http://hg.python.org/cpython/rev/bbeff2958cc5

    New changeset 3e3915cbfde3 by R David Murray in branch '3.3':
    Merge: bpo-17064: fix sporadic permission errors in test_mailbox on windows.
    http://hg.python.org/cpython/rev/3e3915cbfde3

    New changeset aa15df77e58f by R David Murray in branch 'default':
    Merge: bpo-17064: fix sporadic permission errors in test_mailbox on windows.
    http://hg.python.org/cpython/rev/aa15df77e58f

    New changeset 1c2dbed859ca by R David Murray in branch '2.7':
    bpo-17064: fix sporadic permission errors in test_mailbox on windows.
    http://hg.python.org/cpython/rev/1c2dbed859ca

    @bitdancer
    Copy link
    Member

    Thanks, Jeremy.

    @bitdancer bitdancer added the type-bug An unexpected behavior, bug, or error label Feb 11, 2013
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants