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

test_formulae: relax cache invalidation criteria #1243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/test_formulae.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,15 @@ def artifact_cache_valid?(formula, formulae_dependents: false)
return false if sha.blank?
return false unless no_diff?(formula, sha)

formula.recursive_dependencies.all? do |dep|
recursive_dependencies = if formulae_dependents
formula.recursive_dependencies
else
formula.recursive_dependencies do |_, dep|
Dependency.prune if dep.build? || dep.test?
end
end

recursive_dependencies.all? do |dep|
no_diff?(dep.to_formula, sha)
end
end
Expand Down
Loading