mbox series

[0/2] oeqa/utils/gitarchive: fix tag name computation

Message ID 20230811125532.9427-1-alexis.lothore@bootlin.com
Headers show
Series oeqa/utils/gitarchive: fix tag name computation | expand

Message

Alexis Lothoré Aug. 11, 2023, 12:55 p.m. UTC
Hello,
this series brings a fix to a sporadic tag push issue observed in
autobuilder. The bug is documented in bugzilla #15140 ([1]). Basically,
whenever the autobuilder creates a new tag on test results, it is only
aware of "local" tags, which is kind of faulty since used repository is a
shallow clone.

This series then brings two patches:
- a first one to introduce gitarchive tests as a safety net
- a second one to implement the fix by replacing "git tag" calls by "git
  ls-remote" calls where appropriate

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15140

Alexis Lothoré (2):
  oeqa/selftest: introduce gitarchive tests
  oeqa/utils/gitarchive: fix tag computation when creating archive

 .../oeqa/selftest/cases/gitarchivetests.py    | 96 +++++++++++++++++++
 meta/lib/oeqa/utils/gitarchive.py             |  6 +-
 2 files changed, 100 insertions(+), 2 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/cases/gitarchivetests.py