oeqa/utils/gitarchive: fix tag name computation
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 1 replyIn review
- v12 patches 3 repliesSuperseded
Changes in v2 from the cover letter
- mutualize ls-remote usage in a "get_tags" helper
- add a fallback case in the helper if no remote is configured (use push url if provided
[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15140
[2] https://lore.kernel.org/openembedded-core/16b82ce9979d4a09ad3dc42ebef2cbb85c1729c3.camel@linuxfoundation.org/
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | oeqa/selftest: introduce gitarchive testsmeta/ | +96 | 0 replies | |
| 2/3 | oeqa/utils/gitarchive: fix tag computation when creating archivemeta/ | +32 | 0 replies | |
| 3/3 | oeqa/selftest/gitarchive: add tests about tags lisiting when no remote is configuredmeta/ | +33 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [OE-Core][PATCH v2 0/3] oeqa/utils/gitarchive: fix tag name computation
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.
A first attempt has been merged a few days ago, but quickly reverted because of a new issue linked to the fact that some use cases involve git repositories without any remote configured, which makes the new git-ls remote strategy fail (detected by Richard, see [2])
V2:
- mutualize ls-remote usage in a "get_tags" helper
- add a fallback case in the helper if no remote is configured (use push url if provided
[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15140
[2] https://lore.kernel.org/openembedded-core/16b82ce9979d4a09ad3dc42ebef2cbb85c1729c3.camel@linuxfoundation.org/
Alexis Lothoré (3):
oeqa/selftest: introduce gitarchive tests oeqa/utils/gitarchive: fix tag computation when creating archive oeqa/selftest/gitarchive: add tests about tags lisiting when no remote
is configured
.../oeqa/selftest/cases/gitarchivetests.py | 127 ++++++++++++++++++ meta/lib/oeqa/utils/gitarchive.py | 36 ++++- 2 files changed, 159 insertions(+), 4 deletions(-) create mode 100644 meta/lib/oeqa/selftest/cases/gitarchivetests.py
Signature · 1 line
2.41.0