Skip to content

test_sysconfig fails if executed from a relocated place #133742

Closed

Description

@pablogsal

Bug report

Bug description:

The json and the sysconfig value differ in srcdir

[2025-05-08T15:37:25.722Z] -  'srcdir': '/someplace/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/lib64/python3.14/config-3.14-x86_64-linux-gnu'}
[2025-05-08T15:37:25.722Z] +  'srcdir': '/opt/someplace/lib64/python3.14/config-3.14-x86_64-linux-gnu'}
[2025-05-08T15:37:25.722Z] 
[2025-05-08T15:37:25.722Z] ----------------------------------------------------------------------
[2025-05-08T15:37:25.722Z] Ran 37 tests in 0.134s
[2025-05-08T15:37:25.722Z] 
[2025-05-08T15:37:25.722Z] FAILED (failures=1, skipped=3)```

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Linked PRs

Activity

  1. pablogsal commented on May 9, 2025

    @pablogsal
    MemberAuthor
  2. added 2 commits that reference this issue on Jul 22, 2025
  3. added a commit that references this issue on Jul 22, 2025
  4. added a commit that references this issue on Jul 22, 2025
  5. itamaro commented on Jul 23, 2025

    @itamaro
    Contributor

    Should we have CI or a buildbot running tests with a relocated build?

  6. pablogsal commented on Jul 23, 2025

    @pablogsal
    MemberAuthor

    Should we have CI or a buildbot running tests with a relocated build?

    Ideally yes although not sure how much supported is this. Probably the Python build standalone will be impacted so I think it makes sense

  7. itamaro commented on Jul 24, 2025

    @itamaro
    Contributor

    Should we have CI or a buildbot running tests with a relocated build?

    Ideally yes although not sure how much supported is this. Probably the Python build standalone will be impacted so I think it makes sense

    I know our internal builds are affected, because I had these failing tests on a skiplist for ages, and now they pass :)

    There's another one, test_cmd_line, that's failing only with a relocated macOS build. I didn't get around yet to creating a reproducer based on the OSS build, but I suspect it would reproduce if we had a relocated test workflow.

  8. added a commit that references this issue on Aug 4, 2025
  9. added a commit that references this issue on Aug 19, 2025
  10. added a commit that references this issue on Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtopic-sysconfigtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions