Skip to content
Snippets Groups Projects
  1. Mar 26, 2025
  2. Mar 10, 2025
  3. May 09, 2024
    • Martyn Welch's avatar
      Print logging information when upgrade failure detected · 9a9ac819
      Martyn Welch authored
      
      We are seeing failures in the log that appear like this:
      
      + journalctl --after-cursor s=3fe1fe422f3f482191a361280eed2fdd;i=3b5;b=d8d8e27b9e244b3a83c385fe9dee1358;m=5be7e37;t=617e797638e8f;x=967810e36b39afc --unit apertis-update-manager
      + grep -qE Ostree upgrade failed
      + echo update failed
      update failed
      + RESULT=1
      + break
      
      It suggests that the board's journal may contain some information about
      the failure, but we currently aren't seeing this in the LAVA logs.
      
      On failure print out the logs that are being used to determine the
      failure to see if we can understand the issue better.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      9a9ac819
  4. Mar 06, 2024
  5. Feb 26, 2024
    • Walter Lozano's avatar
      power-cut: Limit max delay used · 134794ed
      Walter Lozano authored
      
      During the power cut test several upgrades are triggered and a delay is
      used to trigger a power cut from LAVA. This delay should only allow the
      upgrade to start but not to finish, as the purpose of the test is to ensure
      that in a power cut AUM does not apply the update.
      
      However, with modern boards delays bigger than 3 sec make the system to
      complete the upgrade and thus making the test to fail.
      
      Workaround this issue by limiting the max delay used. This approach is not
      perfect as it is still not deterministic, but at least should make the test
      more stable. A better approach, taking into account the progress in the update
      should be implemented once this support is included.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      134794ed
  6. Jul 25, 2023
  7. Jul 12, 2023
    • Walter Lozano's avatar
      Better fixing for journal parsing · 19283738
      Walter Lozano authored
      
      With the latest approach, from time to time, the AUM tests does not catch
      the upgrade and reports the error. This happens due to the fact that
      the upgrade is done right after the restart and cursor is updated in the loop.
      
      To avoid the issue detect change the way AUM crashed are caught taking into
      account the number of restarts in the log.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      19283738
  8. Jun 21, 2023
  9. Apr 11, 2023
  10. Jan 31, 2023
    • Walter Lozano's avatar
      Fix cursor use with journalctl · 773cfa96
      Walter Lozano authored
      
      If the cursor is not saved in an entry matching the filtering, -u in
      this case, later when logs are searched with a filtering enabled, cursor
      is first move to the first match. With this behavior, using --after-cursor
      will probably skip a valid entry.
      
      To properly save the cursor to later retrieve new logs the same filtering
      should be used to avoid losing logs if the cursor is not pointing to a
      filtered entry.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      773cfa96
    • Walter Lozano's avatar
      Flush logs to properly check test result · 7afbc6f7
      Walter Lozano authored
      
      Under some scenarios, the logs for the AUM restart take longer to appear,
      causing that the cursor is saved before them. Under this situation the test
      might think that AUM was restarted after a crash.
      
      In order to have a reliable way of check logs flush them after restart AUM.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      7afbc6f7
  11. Feb 14, 2022
  12. Feb 11, 2022
  13. Feb 10, 2022
  14. Dec 22, 2021
  15. Nov 26, 2021
  16. Nov 22, 2021
  17. Oct 06, 2021
  18. Aug 17, 2021
  19. Aug 07, 2021
  20. Jul 20, 2021
  21. Feb 27, 2021
  22. Feb 22, 2021
    • Denis Pynkin's avatar
      Fix false positive tests results · 140debb5
      Denis Pynkin authored
      
      If we expect the failure of `apply_update_sync` we should treat
      only "1" return status as expected value.
      Return status "99" is reserved on unexpected failure of AUM itself and
      must indicate the failing test.
      This helps to avoid masking of AUM internal problems.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      140debb5
    • Denis Pynkin's avatar
      lib: detect AUM crash · 5676d033
      Denis Pynkin authored
      
      If AUM is crashed by any reason (SIGSEGV for example) the function
      `apply_update_sync` don't detect that behavior and exit with error code
      after timeout (~8 min). This is leading to false positive result if we
      are expecting the update failure.
      
      Added the check of AUM restart by systemd and return code `99` for that case.
      Different error code allow to determine if the upgrade is failed as
      expected or we have bug in AUM code. Reduces the test time in case of
      AUM crash.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      5676d033
  23. Dec 23, 2020
  24. Dec 21, 2020
  25. Dec 20, 2020
    • Denis Pynkin's avatar
      fix: correct check of the updated state · b5f1aaa6
      Denis Pynkin authored
      
      Commit 8f826964 contain the fix of ostree commit ID parsing.
      Before that commit the ID contained additional suffix (".0") and
      thus the comparison with `COMMIT_AFTER` always shows a difference
      and the test result was __always__ false positive: "pass".
      
      After applying the 8f826964 commit we shed light to other issue --
      we saved a wrong ostree commit ID for later usage.
      In case if we prepare the "outdated" commit -- we must use it's ID
      as "starting" for the test.
      
      Moved the preparation of "outdated" ostree commit into the common
      function `prepare_outdated_commit()` and store the proper ostree
      commit ID as starting point.
      
      Additional side-effect fixed for OTA upgrades -- before current fix
      OTA tests were unstable, sometimes allowing to pass the check even
      with wrong ID written as starting point.
      This is caused by long queues in LAVA nowadays -- the build system may
      prepare and submit the new version while the test is waiting in queue.
      In that case the system do the real upgrade to the OS version newer
      than we have during the test submit.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      b5f1aaa6
  26. Dec 19, 2020
  27. Dec 17, 2020
Loading