8000 Comparing v4.1.0...v4.1.1 · zendesk/arturo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or 8000 learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: zendesk/arturo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.1.0
Choose a base ref
...
head repository: zendesk/arturo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.1.1
Choose a head ref
  • 11 commits
  • 9 files changed
  • 1 contributor

Commits on Jul 11, 2024

  1. require indifferent_access extension explicitly

    In the model-to-mixin rework for Arturo 3.0, we changed the load order, and this extension might not always get loaded before the `FeatureMethods` module. This doesn’t happen in Arturo’s own tests, but affects gems that depend on Arturo.
    razumau committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    162b816 View commit details
    Browse the repository at this point in the history
  2. bump version to 4.1.1

    razumau committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    37ee05b View commit details
    Browse the repository at this point in the history
  3. use original checkout and setup-ruby actions

    Instead of Zendesk forks which are not maintained anymore, as we have switched to a different security model for shared Github workflows.
    razumau committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    5368c1d View commit details
    Browse the repository at this point in the history
  4. stop requiring bump

    We have removed bump as a dependency in e644d05, but still required it in the `Rakefile` which caused all rake tasks to fail.
    razumau committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    863227e View commit details
    Browse the repository at this point in the history
  5. clear whitelists and blacklists after running their specs

    The 'works with a post on holds' spec in controller_filters_spec.rb was flaky. In it, we check that if a feature :book_holds has deployment_percentage set to 0, and we call require_feature :book_holds in a controller, then we receive 403 Forbidden from that controller.
    
    However, if the 'works with global whitelisting' spec ran as a final spec from its suite of six, and before the :book_holds, we still had a whitelist in place that would enable all features, so enabled_for? returned true for :book_holds:
    
    def enabled_for?(feature_recipient)
      return false if feature_recipient.nil?
      return false if blacklisted?(feature_recipient)
      ---> return true if  whitelisted?(feature_recipient) # returned true, so we never checked deployment_percentage
      passes_threshold?(feature_recipient, deployment_percentage || 0)
    end
    
    This suggests that approximately 1/12 of all spec runs should see this spec fail (the probability of the global whitelist spec being last is 1/6, and the probability of it running before the controller spec is 1/2), which agrees with the recent data: in a matrix of 16, one job was usually failing.
    
    The solution to this problem is to clean whitelists (and blacklists) not only before their specs, but also after.
    razumau committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    0edc4fa View commit details
    Browse the repository at this point in the history
  6. stop checking for before_filter

    `before_filter` got deprecated in Rails 5.1, and we only support Rails 6.0 and above, so there is no need to check whether we need it or `before_action`.
    razumau committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ab21cf2 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Merge pull request #153 from zendesk/jury.razumau/before_filter

    stop checking for before_filter
    razumau authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    0327909 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #152 from zendesk/jury.razumau/controllers_flaky_spec

    clear whitelists and blacklists after running their specs
    razumau authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    bdab970 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #151 from zendesk/jury.razumau/bump_removal

    stop requiring bump
    razumau authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    3618a9d View commit details
    Browse the repository at this point in the history
  4. Merge pull request #150 from zendesk/jury.razumau/switch_ci_actions

    use original checkout and setup-ruby actions
    razumau authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    6c7ae84 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #149 from zendesk/jury.razumau/indifferent_access

    require indifferent_access extension explicitly
    razumau authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    9889aa8 View commit details
    Browse the repository at this point in the history
Loading
0