<p dir="auto">This PR makes our test suite run several minutes quicker (single-thread timings). User creation tests drop on my machine from 200 seconds to 6 seconds.</p>
<p dir="auto">Previously, several of the user creation tests were repeated 228 times, once in each available locale. This takes a lot of time and provides very little value.</p>
<p dir="auto">After those were refactored, the next slowest tests were the changeset comment rate limit tests. A simple way to make them run 3-4 times faster is just to reduce the rate limits in the test settings, since this reduces the number of (uninteresting) post requests made.</p>
<p dir="auto">Rails 7.1 ships with the <code class="notranslate">--profile</code> flag, which makes it easy to find the slowest tests, and these stood out when doing so.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4426'>https://github.com/openstreetmap/openstreetmap-website/pull/4426</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4426/commits/f22ecd6309ee4becd2df19210b478adfa36f0c25" class="commit-link">f22ecd6</a>  Avoid running integration tests in every locale</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4426/commits/abc58ed903450d6d36690fe518cde3441eeb492d" class="commit-link">abc58ed</a>  Reduce changeset comment rate limits further in tests</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4426/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4426/files#diff-35b4e12cc4861df996689cfdc4006b266c22d40a0ecefd2ab6c74d817e20bf8b">config/settings/test.yml</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4426/files#diff-19aa16b7c7e0598a9b16e64733cafc53ac88bc34c658524342c0a0bffde8affc">test/integration/user_creation_test.rb</a>
    (198)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4426.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4426.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4426.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4426.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4426">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLP52GPHRFSDNXJNXBTYKLIPNAVCNFSM6AAAAABA4W2KWCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TANBSG4ZTAMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPDIYNS3O52A5JWU43YKLIPNA5CNFSM6AAAAABA4W2KWCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHUNYJU4.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4426</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4426",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4426",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>