<p></p>
<p>Ah, sorry, perhaps I wasn't clear. I wasn't referring to any CI-related matters. I mean that when you use this Docker configuration to set up a local development environment, you need to have multiple databases:</p>
<ul>
<li>A development database, called <code>openstreetmap</code>, that I know is created by the env vars</li>
<li>One or more (probably more) test databases, so that you can run the test suite (or parts of it) locally before committing changes.</li>
</ul>
<p>So my concern is that they way this has been written, where the env vars set up only one database, and they <code>openstreetmap</code> postgres role is not a super user, means that the test suite will not run on your laptop.</p>
<p>For our INSTALL.md and Vagrant approaches, the postgres role used in the test configuration has enough permissions to create whichever databases are required when the test suite runs</p>
<blockquote>
<p>As an occasional contributor, I never run the test suite locally and rely on the CI to do it for me.</p>
</blockquote>
<p>Well I hope that this will be made easier by having a Docker-based development environment for you <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji> As per the notes, running <code>docker-compose run --rm web bundle exec rake test:db</code> should be enough.</p>
<p>To be double-clear, I'm not asking that the full test suite runs in Docker as part of the CI system. I'm not interested in that. But I'm asking that the test suite works when I run the above command on my laptop.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-747554493">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLN6YPVQCUIEYANVLNDSVIXOXANCNFSM4JDURRXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLMSO7YJVKMIHALJW3DSVIXOXA5CNFSM4JDURRXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFSHMNPI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-747554493",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-747554493",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>