Skip to content
代码片段 群组 项目
  1. 10月 29, 2024
  2. 10月 28, 2024
  3. 10月 27, 2024
    • John Sirois's avatar
      Fix `--venv` cached Python interpreter info. (#2579) · d1d541ed
      John Sirois 创作于
      Previously, the work dir path of the `atomic_directory` used to create
      the venv would leak into various cached paths in the `PythonInterpreter`
      `INTERP-INFO` file. Now, these paths are corrected at creation time.
      
      This is work towards `pex3 cache prune --last-access` which will need to
      iterate cached interpreters to find any associated with venvs such that
      the interpreter can be pruned when the venv is pruned.
      d1d541ed
    • John Sirois's avatar
      Start tracking Python PI. (#2563) · 7dda5198
      John Sirois 创作于
      7dda5198
  4. 10月 26, 2024
  5. 10月 25, 2024
  6. 10月 24, 2024
  7. 10月 22, 2024
    • John Sirois's avatar
      Optimize test disk usage further. (#2562) · d94fa6a5
      John Sirois 创作于
      This fixes some root ownership issues from docker use as well as
      trimming pytest disk usage by just retaining failed tmpdirs. The latter
      required re-implementing the tmpdir fixture to work around a hard-coded
      pytest 30 character test name disambiguation limit as well as
      parameterizing Pip installations and Pex isolations by PEX_ROOT to
      support test tmpdir teardowns.
      d94fa6a5
  8. 10月 20, 2024
  9. 10月 15, 2024
  10. 10月 13, 2024
  11. 10月 10, 2024
  12. 10月 09, 2024
  13. 10月 06, 2024
    • John Sirois's avatar
      Re-structure PEP-691 fingerprints db. (#2552) · 22c254cf
      John Sirois 创作于
      Use a `dbs` cache entry for all databases starting with PEP-691
      fingerprints and hide this cache entry as a choice when purging
      individual entries using `pex3 cache purge`.
      
      Work towards #2528.
      22c254cf
  14. 10月 04, 2024
  15. 10月 03, 2024
  16. 10月 01, 2024
  17. 9月 29, 2024
  18. 9月 20, 2024
  19. 9月 19, 2024
    • John Sirois's avatar
      Prepare the 2.20.0 release. (#2539) · ea0dfba3
      John Sirois 创作于
      Also turn on CI IT sharding for a ~40% wall time reduction, fixing up
      some existing test issues this smoked out.
      ea0dfba3
    • John Sirois's avatar
      Fix intermittent PEP-517 failures. (#2540) · f5be4793
      John Sirois 创作于
      I've not had a report in the wild, but CI intermittently fails in
      PEP-517 tests, not finding the json communication file on the read end.
      This exposes a race where the PEP-517 process completes before the
      temporary file context manager is exited and the communication file,
      with the results therein, is deleted before it can be read. Switch from
      a temporary file that deletes on context exit (it's amazing this worked
      as reliably as it did - it was a bug from day 1!) to one that deletes
      only upon the Pex process exit.
      f5be4793
    • John Sirois's avatar
      Plumb `--pip-version` to Platform tag calculation. (#2538) · 85bdc778
      John Sirois 创作于
      This fixes a long-standing discrepency between the selected
      `--pip-version` and the Pip actually used to determine abbreviated
      `--platform` compatibility tags. With the `--pip-log` enhancement
      from #2536 the calculated abbreviated platform tags are now always
      logged to the Pip log, which is very useful for debugging failed
      resolves using abbreviated platforms.
      
      Fixes #1894
      85bdc778
  20. 9月 18, 2024
    • John Sirois's avatar
      Add support for sharding tests. (#2537) · 315c56ab
      John Sirois 创作于
      Create a pytest plugin that supports recording test timings and then
      sharding tests based on timings. The initial timing baseline is included
      and the plugin is made to handle the case of out of date timings by
      assuming an average time for any test not found in the timings database.
      
      N.B.: This will be used in a forthcoming change to shard CI integration
      tests and bring CI times down by ~30%.
      315c56ab
    • John Sirois's avatar
      Add the ability to specify the `--pip-log` path. (#2536) · eda04d2f
      John Sirois 创作于
      Although `--pip-log` is just an alias for the pre-existing
      `--preserve-pip-download-log` option, the option gains the ability to
      accept an optional log path value. In addition to this pro-active means
      of starting a debuggable Pex session with Pip, the log is also made more
      useful in the face of a multi-target resolve by serializing the log on
      targets and prefixing log lines per target. The log now also includes
      the compatibility tags calculated via `pip -v debug ...` for any 
      abbreviated `--platform`s used in the resolve.
      eda04d2f
    • John Sirois's avatar
      Re-work testing pyenv management. (#2535) · 9a7f1abc
      John Sirois 创作于
      The new setup allows for safe upgrades by just bumping pyenv Python
      versions. Also re-work atomic_directory to support this cleanly, allow
      obtaining an independent lock on an atomic directory after it has been
      established. This can be useful when reads of the directory contents all
      happen in the same code path as the writes.
      9a7f1abc
  21. 9月 17, 2024
    • John Sirois's avatar
      Warn when `--platform` resolves fail tag checks. (#2533) · 9098057a
      John Sirois 创作于
      The addition of a wheel tag compatibility check to the overall
      post-resolve check in #2512 regressed users of abbreviated `--platform`
      in some cases by failing PEX builds that would otherwise succeed and,
      later, actually work at runtime. Keep the spirit of #2512 by emitting a
      detailed warning at build time with remediation steps instead of failing
      the build outright.
      
      Fixes #2532
      9098057a
  22. 9月 15, 2024
    • John Sirois's avatar
      Introduce `--pre-resolved-dists` resolver. (#2512) · 5e689f96
      John Sirois 创作于
      When building a PEX or creating a venv via `pex3 venv create` you can
      now tell Pex to use a set of pre-resolved distributions. This is similar
      to using `--no-pypi --find-links ...` except that:
      1. Its roughly 3x faster since Pip is not asked to do any resolution.
      2. It requires all the distributions specified form an already complete
         resolve.
      
      One way to obtain distributions that meet criteria 2 is to use
      `pip download -d ...` or `pip wheel -w ...` to pre-resolve the
      distributions you need.
      
      Closes #1907
      5e689f96
    • John Sirois's avatar
      Get unit tests running stably under xdist. (#2529) · 565092f4
      John Sirois 创作于
      This was mostly already working save for a few tests that needed
      adjustment to be able to run consistently in isolation or under xdist
      or both.
      565092f4
加载中