Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

v1.28.0 shows v1.29.0-dev; v1.27.x tags all having 149 commits to current #3488

Closed
1 task done
swiffer opened this issue Nov 25, 2023 · 19 comments
Closed
1 task done

Comments

@swiffer
Copy link
Contributor

swiffer commented Nov 25, 2023

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

grafik

grafik

Expected Behavior

Should show v1.28.0

Why are all v1.27.x tags are showing 149 commits compared to latest? have branches diverged?
https://github.com/teslamate-org/teslamate/tags

Steps To Reproduce

No response

Relevant log output

-

Screenshots

No response

Additional data

No response

Type of installation

Docker

Version

v1.28.0

@billerby
Copy link
Contributor

Same here, also looks like the release action failed to publish the 1.28.0 image to docker.io (https://github.com/teslamate-org/teslamate/actions/runs/6988327850). Maybe related.

@rpearson-catdevnull
Copy link

rpearson-catdevnull commented Nov 25, 2023

See #3487. Think 1.28.0 has been marked as prerelease following that issue. Suspect once resolved should be fine

@swiffer
Copy link
Contributor Author

swiffer commented Nov 25, 2023

Tags v1.27.1, v1.27.2, v1.27.3 and v1.27.4 are based of commits from v1.27 branch. That branch has never been merged back into master - therefore clicking on tagged versions in CHANGELOG.md / compare tags is giving "wrong" results currently...

e.g.
master...v1.27.3
v1.27.3...master
v1.27.4...v1.28.0

@JakobLichterfeld - Don't we have to merge v1.19 into v1.20, v1.20 into v1.21, ... v1.27 into master similar to how MariaDB is doing it?

https://github.com/MariaDB/server

-> EDIT: That doesn't fix tags historically - it should have been done before tagging new releases?

Afterwards - I guess it's fine to remove v1.X branches (or do we want to continue supporting several release branches at the same time)?

-> EDIT: Doesn't work, see comment below

@swiffer
Copy link
Contributor Author

swiffer commented Nov 25, 2023

#3492

I would start like that - if you like I could to the other branches as well)

@JakobLichterfeld
Copy link
Collaborator

JakobLichterfeld commented Nov 25, 2023

Good find, had observed it as well, will double-check tomorrow or on Monday.

@swiffer
Copy link
Contributor Author

swiffer commented Nov 26, 2023

I don't see benefits in the branching model used up until now. It doesn't really look like we need to support multiple minor versions in parallel?

What has happened:

Whenever a new Minor Release is tagged a new Branch is created (e.g. v1.23). Changes happening afterwards (in master) have been cherry-picked into the release branches.

grafik

That means also those branches diverged from master but tags have been placed in these branches. Merging e.g. v1.20 into v1.21 now doesn't fix the the issue of not being able to compare tags correctly via git-diff

  • Tags could be deleted and recreated on the master branch instead but we shouldn't do that.
  • The moment we delete e.g. the v1.20 branch we are losing the tags, therefore we cannot do that either.

What should happen now:

It might be best to keep everything the way it is for the past and start working differently now (I would vote for having an ever-green master (and rename to main? :)) branch we are tagging new releases in and no longer create release branches).

Overusing Cherry-Pick results in a messy repo history: https://www.gitkraken.com/learn/git/cherry-pick#whats-the-difference-between-cherry-picking-and-merging-in-git

@JakobLichterfeld
Copy link
Collaborator

JakobLichterfeld commented Nov 26, 2023

I don't see benefits in the branching model used up until now.

I could not agree more.

I would vote for having an ever-green master (and rename to main? :)

Same here. I do not have access to the settings to use the GitHub rename tool, otherwise I would have done it since weeks :-)

@swiffer
Copy link
Contributor Author

swiffer commented Nov 26, 2023

@adriankumpf - could you rename master to main?

@JakobLichterfeld
Copy link
Collaborator

@adriankumpf - could you rename master to main?

@cwanja do have the rights as well I assume.

@oivindoh
Copy link
Contributor

Renaming master to main seems a bit.. pointless?

@swiffer
Copy link
Contributor Author

swiffer commented Nov 26, 2023

It's not giving direct value to Teslamate itself but it's git and GitHub defaults for reasons

https://www.theserverside.com/feature/Why-GitHub-renamed-its-master-branch-to-main

@cwanja
Copy link
Collaborator

cwanja commented Nov 26, 2023

@JakobLichterfeld - yes I have the ability to rename master (shocked I somehow do, but alas here we are). However, are they downstream net negative effects if I execute this? Or should it be performed in a controlled manner?

Screenshot 2023-11-26 at 10 36 14 AM

@cwanja
Copy link
Collaborator

cwanja commented Nov 26, 2023

Also, are we positive that 1.28.1 is safe to install now? Seen a handful of discussions and issues regarding it.

@swiffer
Copy link
Contributor Author

swiffer commented Nov 26, 2023

Wait until Grafana Issues are sorted Out. I'll try to have a Look tomorrow morning...

@JakobLichterfeld
Copy link
Collaborator

@JakobLichterfeld - yes I have the ability to rename master (shocked I somehow do, but alas here we are). However, are they downstream net negative effects if I execute this? Or should it be performed in a controlled manner?

Perfect, saw your repo rights in a list. It is safe to do so, but we need to adopt our CI pipelines manually, so we need to coordinate it.

@oivindoh
Copy link
Contributor

oivindoh commented Nov 26, 2023

It's not giving direct value to Teslamate itself but it's git and GitHub defaults for reasons

https://www.theserverside.com/feature/Why-GitHub-renamed-its-master-branch-to-main

Wow that article contains quite the mental acrobatics reasoning, and this change will break people who link to / otherwise consume raw files from the master branch (such as dashboards) for no good reason.

@swiffer
Copy link
Contributor Author

swiffer commented Nov 26, 2023

It's not giving direct value to Teslamate itself but it's git and GitHub defaults for reasons
https://www.theserverside.com/feature/Why-GitHub-renamed-its-master-branch-to-main

Wow that article contains quite the mental acrobatics reasoning, and this change will break people who link to / otherwise consume raw files from the master branch (such as dashboards) for no good reason.

Projects like Node.js have done it - most likely they had bigger implications...

However maybe it's best to Open a separate issue for that, Pin it, and give some Time ahead...

The topic of this issue have eben adressed

@swiffer swiffer closed this as completed Nov 26, 2023
@cwanja
Copy link
Collaborator

cwanja commented Nov 26, 2023

@JakobLichterfeld - yes I have the ability to rename master (shocked I somehow do, but alas here we are). However, are they downstream net negative effects if I execute this? Or should it be performed in a controlled manner?

Perfect, saw your repo rights in a list. It is safe to do so, but we need to adopt our CI pipelines manually, so we need to coordinate it.

Let me know how you want to coordinate @JakobLichterfeld in light of the comments above 😄

@JakobLichterfeld
Copy link
Collaborator

However maybe it's best to Open a separate issue for that,

#3503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants