<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/186438>186438</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [libc++] Try to build both Android and Linux CI images from the same base, to avoid needing two commits on updates
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            ldionne
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ldionne
      </td>
    </tr>
</table>

<pre>
    Right now, the steps to update the CI images for libc++ testing are a bit awkward.

First, you need to make a change to e.g. `libcxx/utils/ci/docker/linux-builder-base.dockerfile` and land it, and get that image rebuilt via the Github action. That will provide the SHA of a new image.

Second, the `BASE_IMAGE_VERSION` of `libcxx-linux-builder` and `libcxx-android-builder` can be updated inside `libcxx/utils/ci/docker/docker-compose.yml`. Land that, and get the new non-base images to rebuild. That gets you yet another set of SHAs.

Finally, update the SHA mentioned in `libcxx/utils/ci/images/libcxx_next_runners.txt`. This is documented in `Contributing.rst`.

It would be nice to merge the first two steps such that you only have to update the images in one commit, and then go back and set the image from `libcxx_next_runners.txt` in a second commit.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyElE1v4zYQhn8NfRlYkGhbsQ86ONl4N8C2BdZBrwEljiU2FGmQI3_8-2IoOU6KFr3YAj-G8z7zzqgYTesQK7F6FFJabbxzKKQUq28zNVDnQzUtzmqvr9Uv03YEzp-FfALqECLhMQJ5GI5aEaa1pxcwvWoxwsEHsKZuhHwU8hEIIxnXggoICmpDoM7vZxV0JvKtyLc7EyJx5KsfwCFqDtyrdz7ddMq1yAuYtRmIMufAl4uQu4GMjULuGiPkTvvmHYOQO2vccJnXg7Eaw7xWEbNx72AsijIH5TRY_jHpTf5qkYA6RWP-EJCvE5yMSsK-G-qGGlRDxrsMXvnk2VgLx-BPRo_q9z-24A-gwOF5jDOp22Pjnb6BE2X-uN0_v738tv3-_Pbn86_9yx-_c1r-cBc3_yLilvR9WzkdvNGfDzTKQY1TOTQYFzmx_8c1fswb3x99xOzaW1HmGfzkBxnJV0SY1DnvEthbuclPyPQEp0WKqZhXJFDOU4cBIhKL3P_Yxo-6O2XtlZ_4ZCMG2aNj1knIf4sYn0815-03hxd6C4NzGGJGF0pKXjsTwUTQvhk47EfMJ-8omHpga2ZswDKf8nohOPvBagbqTJPc12Nox_wO7Fags5-aIA5NN7qHFXtnr9CpE_6jOSZUxoF3CI3v-7v9qEMHrYdaNe9pIU6wRzsegu_vEP5NJYdVEJPRptjZTFcLvVls1Ayr4uFhsSw2RVHMuqqWSkvZrDdqUyxlruVyvXpo8vJhuVmupG5mppK5LPNFsShKuco3mS5wsT6syoPcbLDWK7HMsVfGZtae-syHdmZiHLAq1uVysZ5ZVaONt9nyMQam8RIqvjWvhzaKZW5NpHiPQ4Zsmkqfrq2-wWu4Ms5kMag9dbAdOyDR-snN8nn6MK80pFSPwEZNzedBnfgKDxieRlzBkVUE76ZaxdkQbNURHaNYbIXcCblrU_tnje_ZavZ0-5sfg_8LG2Insn524oTgVMm_AwAA__8g_M6r">