Skip to content

Fix flaky spec in Debian distribution signatures

🃏 Context

In #389950 (closed), it has been discovered that Debian signature could change the hash type.

See more details in #389950 (comment 1259964884).

This creates flaky specs. This MR updates the expectations so that the hash type is not included.

🤔 What does this MR do and why?

  • Updates spec/support/shared_examples/services/packages/debian/generate_distribution_shared_examples.rb to avoid having a specific hash type (such as SHA256).

📺 Screenshots or screen recordings

n / a

How to set up and validate locally

$ bundle exec rspec spec/workers/packages/debian/generate_distribution_worker_spec.rb:60
$ bundle exec rspec spec/services/packages/debian/generate_distribution_service_spec.rb:18

🛃 MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports