<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hey Steve, Julian,<br>
      <br>
      I was reading again those steps Christian shared a while ago and
      noticed the current archive autopkgtest version still doesn't
      implement the '-a' option. <br>
      It seems
<a class="moz-txt-link-freetext" href="https://code.launchpad.net/~ubuntu-release/autopkgtest/+git/development/+merge/376169">https://code.launchpad.net/~ubuntu-release/autopkgtest/+git/development/+merge/376169</a>
      got an ack 3 years ago, is there anything blocking the merge?</p>
    <p>I've added the notes on
      <a class="moz-txt-link-freetext" href="https://wiki.ubuntu.com/ProposedMigration#How_do_we_debug_i386_issues">https://wiki.ubuntu.com/ProposedMigration#How_do_we_debug_i386_issues</a>
      because it's not the first time I have to figure that again and
      it's probably the same for others. It would be nice it things
      working with the archive version of autopkgtest</p>
    <p>Cheers,<br>
      Sebastien<br>
    </p>
    <div class="moz-cite-prefix">Le 06/02/2020 à 16:37, Christian
      Ehrhardt a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAATJJ0KRScQRKPmPryPzdnUSXOAGtom2qTHKxoitH0KJUbP-Cg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,<br>
        The i386 removal works great and after the dust settled it comes
        mostly down to adding a few more hints in recent weeks. But
        sometimes there are i386 tests that are valid to run, but fail
        and need debugging.
        <div><br>
        </div>
        <div>If you happen to face such a case the old common pattern
          won't work anymore:<br>
          <br>
          $ sudo autopkgtest-buildvm-ubuntu-cloud -a i386 -r bionic -s
          15G<br>
          $ sudo ~/work/autopkgtest/autopkgtest/runner/autopkgtest
          <YOUR>.dsc \<br>
            -- qemu ~/work/autopkgtest-focal-amd64.img<br>
          <br>
          The above was fine in the past, but with Focal you that won't
          work due to:<br>
          $ sudo autopkgtest-buildvm-ubuntu-cloud -a i386 -r focal -s
          15G<br>
          Downloading <a
href="https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-i386.img."
            moz-do-not-send="true" class="moz-txt-link-freetext">https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-i386.img.</a>..<br>
          No image exists for this release/architecture<br>
          <br>
          Steve was so kind to help me with the case I was facing and
          after a bit I learned how to locally run my i386 tests in a VM
          and wanted to share that with you.<br>
          <br>
        </div>
        <div>First of all, you probably need a more recent autopkgtest
          to get the features you need.</div>
        <div>So you need to clone git and run it from there.<br>
          <br>
          $ git clone <a class="moz-txt-link-freetext" href="git+ssh://">git+ssh://</a><a
href="http://paelzer@git.launchpad.net/~ubuntu-release/autopkgtest/+git/development"
            moz-do-not-send="true">paelzer@git.launchpad.net/~ubuntu-release/autopkgtest/+git/development</a><br>
          [for me that is in ~/work/autopkgtest/autopkgtest]<br>
          <br>
          And then - since you only have amd64 images - to run it you
          have to add<br>
          # to select the architecture for the test<br>
            -a i386<br>
          # to get the arch available in the test env before the testing
          starts<br>
            --setup-commands="dpkg --add-architecture i386; apt-get
          update"<br>
          <br>
          Overall for me it then worked like:<br>
          $ sudo ~/work/autopkgtest/autopkgtest/runner/autopkgtest
          <YOUR>.dsc \<br>
            --setup-commands="dpkg --add-architecture i386; apt-get
          update" -a i386 \<br>
            -- qemu ~/work/autopkgtest-focal-amd64.img<br>
          <br>
          I hope this helps some other people as well.<br>
          And if anyone knows more tweaks to get this local i386 test to
          run even better please reply and let us all know.<br>
          <br>
          P.S. of course my commandline never is that simple, the above
          is just for illustration.<br>
          In reality it was more like:<br>
          $ sudo ~/work/autopkgtest/autopkgtest/runner/autopkgtest
          --no-built-binaries --apt-upgrade
          --apt-pocket=proposed=<a class="moz-txt-link-freetext" href="src:re2c">src:re2c</a> --setup-commands="dpkg
          --add-architecture i386; apt-get update" --shell-fail -a i386
          re2c_1.3-1.dsc -- qemu --qemu-options='-cpu host'
          --ram-size=2048 --cpus 2 ~/work/autopkgtest-focal-amd64.img<br>
          <br>
          --<br>
          Christian Ehrhardt<br>
          Staff Engineer, Ubuntu Server<br>
          Canonical Ltd<br>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
    </blockquote>
  </body>
</html>