Skip to content

GitHub Actions: Consider further caching in CI workflow #1247

Closed

Description

@lukpueh

Description of issue or feature request:
#1242 added a GitHub Actions based CI workflow, which configures basic pip caching.

Current behavior:
Basic pip caching in CI workflow

Expected behavior:
Explore and implement further caching to further speed up CI workflow (@jku suggests to try caching the tox directory).

Activity

  1. lukpueh commented on Jan 15, 2021

    @lukpueh
    MemberAuthor

    Also cache pip install in non-"test" jobs, e.g. "coveralls-fin" introduced in #1252. It would be nice to find a cross-job caching solution.

  2. jku commented on Jan 15, 2021

    @jku
    Member

    Leaving a note for later: Defining an action of our own in this same repo should allow using the same code across different jobs: Maybe it's not hard to define a "pip-install" action that sets up cache, updates pip and installs/updates the given list of packages.

  3. jku commented on Dec 16, 2021

    @jku
    Member

    cache pip install in non-"test" jobs, e.g. "coveralls-fin" introduced in #1252

    this one might be the only relevant thing left here as

    • caching tox is not a good idea: tox is not able to handle some changes in dependencies, so we'd need to build something ourselves... not worth it
    • setup-python now handles cache (CI: Use builtin package cache support #1718) so that's not longer ugly
  4. added
    good first issue
    on Mar 16, 2022
  5. added
    github_actions
    on Apr 20, 2022
  6. h4l0gen commented on May 25, 2024

    @h4l0gen
    Contributor

    Hi @jku @lukpueh, If this issue is available to take on, I would like to work on it.

  7. jku commented on May 27, 2024

    @jku
    Member

    this issue is old... There may be caching opportunities in the workflows but there is no check-list to go through, sorry.

  8. lukpueh commented on Apr 1, 2025

    @lukpueh
    MemberAuthor

    cache pip install in non-"test" jobs, e.g. "coveralls-fin" introduced in #1252

    this one might be the only relevant thing left here as

    "coveralls-fin" Python installs are cached since https://github.com/theupdateframework/python-tuf/pull/2173/files

    IMO GHA builds are swift enough to close here.

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

    github_actionsgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions