Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Use proper syntax for gitlab job dependencies #1750

Merged
merged 2 commits into from
Aug 24, 2020
Merged

Conversation

zabbal
Copy link
Contributor

@zabbal zabbal commented Aug 20, 2020

The 'dependencies' actually means the list of artifacts, while the dependencies
are expressed with 'needs' keyword which by default implies artifact list as
well.

@zabbal zabbal requested a review from pattivacek August 20, 2020 11:00
@pattivacek pattivacek requested a review from aodukha August 20, 2020 11:02
@pattivacek
Copy link
Collaborator

I see some sort of error I haven't entirely understood yet: https://main.gitlab.in.here.com/olp/edge/ota/connect/client/aktualizr/-/pipelines/1021912

@zabbal
Copy link
Contributor Author

zabbal commented Aug 20, 2020

Doh! I really wish gitlab's yaml was designed from scratch by someboby who knows what they are doing. Alas, we have to deal with haphazard collection of features randomly bolted on each other. The fix is waiting for repo sync.

@codecov-commenter
Copy link

codecov-commenter commented Aug 20, 2020

Codecov Report

Merging #1750 into master will decrease coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1750      +/-   ##
==========================================
- Coverage   84.98%   84.86%   -0.12%     
==========================================
  Files         178      178              
  Lines       12019    12019              
==========================================
- Hits        10214    10200      -14     
- Misses       1805     1819      +14     
Impacted Files Coverage Δ
src/libaktualizr/storage/sqlstorage_base.h 60.00% <0.00%> (-40.00%) ⬇️
src/libaktualizr/storage/sqlstorage_base.cc 74.82% <0.00%> (-5.45%) ⬇️
src/aktualizr_info/main.cc 93.19% <0.00%> (-0.86%) ⬇️
src/libaktualizr/package_manager/ostreemanager.cc 79.92% <0.00%> (-0.73%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c61fc6...272af4e. Read the comment docs.

@@ -293,6 +293,7 @@ Ptest qemux86_64:
GIT_CHECKOUT: false
dependencies:
- OE Checkout
needs: ["OE Checkout"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this one need both keywords specified?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-lunch commits are rarely good idea :-/

@zabbal zabbal force-pushed the feat/gitlab branch 6 times, most recently from a8e7578 to 99cd775 Compare August 20, 2020 15:15
The 'dependencies' actually means the list of artifacts, while the dependencies
are expressed with 'needs' keyword which by default implies artifact list as
well. While at it, also reduce code duplication by using templates.

N. B: we have to be careful with optional jobs because this might lead to yaml
error in case of 'needs' referring to non-existent job.

Signed-off-by: Max <max.suraev@here.com>
@zabbal zabbal force-pushed the feat/gitlab branch 2 times, most recently from ff43aad to 36a8894 Compare August 20, 2020 15:46
Replace ugly sed workaround with proper docker build-time args.

Signed-off-by: Max <max.suraev@here.com>
@zabbal
Copy link
Contributor Author

zabbal commented Aug 20, 2020

I've split changes which could affect release process into separate commit to make it easier to rollback.

Release docs: https://docs.ota.here.com/ota-client/latest/release-process.html

The failing gitlab pipeline is due to flacky tests in coverage job. I can mark it as optional to work around it or we can merge regardless and proceed with release testing.

@pattivacek
Copy link
Collaborator

The test flakiness is getting really annoying, but it's not new. It's possible that this PR has somehow exacerbated the problems, but I don't really understand how. For now, let's go ahead and merge and see how it goes. We have a ticket already for looking into these tests (https://saeljira.it.here.com/browse/OTA-5194) which can be prioritized if necessary.

@pattivacek pattivacek merged commit 7306cc5 into master Aug 24, 2020
@pattivacek pattivacek deleted the feat/gitlab branch August 24, 2020 14:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants