Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Only attach :latest tag to versioned images from main #5781

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

yurishkuro
Copy link
Member

Which problem is this PR solving?

Description of the changes

  • Do not add latest tag when on the main branch
  • Do add latest when on a semver tag

How was this change tested?

  • unit tests

Copy link

codecov bot commented Jul 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.66%. Comparing base (cab1aee) to head (51cfa7c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5781      +/-   ##
==========================================
+ Coverage   96.45%   96.66%   +0.21%     
==========================================
  Files         342      342              
  Lines       16519    16519              
==========================================
+ Hits        15933    15968      +35     
+ Misses        395      362      -33     
+ Partials      191      189       -2     
Flag Coverage Δ
badger_v1 8.05% <ø> (ø)
badger_v2 1.81% <ø> (ø)
cassandra-3.x-v1 16.61% <ø> (ø)
cassandra-3.x-v2 1.74% <ø> (ø)
cassandra-4.x-v1 16.61% <ø> (ø)
cassandra-4.x-v2 1.74% <ø> (ø)
elasticsearch-6.x-v1 18.78% <ø> (ø)
elasticsearch-7.x-v1 18.83% <ø> (?)
elasticsearch-8.x-v1 19.03% <ø> (?)
elasticsearch-8.x-v2 1.80% <ø> (ø)
grpc_v1 9.52% <ø> (+0.01%) ⬆️
grpc_v2 7.13% <ø> (ø)
kafka 9.74% <ø> (ø)
memory_v2 1.81% <ø> (ø)
opensearch-1.x-v1 18.89% <ø> (?)
opensearch-2.x-v1 18.89% <ø> (?)
opensearch-2.x-v2 1.81% <ø> (ø)
unittests 95.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yurishkuro yurishkuro changed the title Compute tags no latest Only attach :latest tag to versioned images from main Jul 27, 2024
@yurishkuro yurishkuro force-pushed the compute-tags-no-latest branch from 659bb43 to 73bdbcc Compare July 27, 2024 15:55
Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro force-pushed the compute-tags-no-latest branch from 73bdbcc to 51cfa7c Compare July 27, 2024 16:22
@yurishkuro yurishkuro marked this pull request as ready for review July 27, 2024 19:52
@yurishkuro yurishkuro requested a review from a team as a code owner July 27, 2024 19:52
@yurishkuro yurishkuro requested a review from albertteoh July 27, 2024 19:52
Copy link
Contributor

@jkowall jkowall left a comment

Choose a reason for hiding this comment

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

LGTM!

@yurishkuro yurishkuro merged commit ed5cc29 into jaegertracing:main Jul 28, 2024
45 of 46 checks passed
@yurishkuro yurishkuro deleted the compute-tags-no-latest branch July 28, 2024 00:41
yurishkuro added a commit that referenced this pull request Jul 28, 2024
## Which problem is this PR solving?
- Resolves #5721
- The previous PR #5781 didn't quite work because we were still applying
tags like `--tag docker.io/foo/bar` (without a version), which evidently
leads Docker to treat them as `:latest`, which is exactly what we are
trying to avoid for `main` branch

## Description of the changes
- Remove usage of no-version tags `--tag docker.io/foo/bar`  completely
- Fix unit tests, make them stricter

## How was this change tested?
- Unit tests

Signed-off-by: Yuri Shkuro <github@ysh.us>
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: jaegertracing/all-in-one:latest does not match the latest Docker versioned tag nor the latest git tag
2 participants