Skip to content

Conversation

Bill-hbrhbr
Copy link
Collaborator

@Bill-hbrhbr Bill-hbrhbr commented Jan 27, 2025

Description

As discussed offline, a task containing both the sources and deps fields will always execute the tasks listed in deps, but it may skip running itself if the sources remain unchanged.

To ensure the parent task re-runs whenever the venv task is re-executed, we need to enforce this dependency by introducing the venv task checksum in sources. Otherwise, we risk missing tool version upgrades or inadvertently introducing linting issues.

Validation performed

  • With the checksum files in sources, a re-run/ rebuild of venv properly triggers re-runs of all linting tasks.

@Bill-hbrhbr Bill-hbrhbr requested a review from davidlion January 27, 2025 09:09
@davidlion davidlion changed the title fix: Include the venv checksum file in the sources fields for all public linting tasks. fix: Include the venv checksum file in the sources fields for all public linting tasks. Jan 27, 2025
@davidlion davidlion merged commit 9cc7027 into y-scope:main Jan 27, 2025
6 checks passed
@Bill-hbrhbr Bill-hbrhbr deleted the add-venv-checksum-to-sources branch February 3, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants