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

feat: metrics generation workflow #1481

Merged
merged 9 commits into from Apr 4, 2024

Conversation

SachinSahu431
Copy link
Contributor

@SachinSahu431 SachinSahu431 commented Mar 28, 2024

This PR adds a bash script that will generate new metric files whenever a new Go version is released. After that, a PR will be raised, containing all these files.

Closes: #1435

Signed-off-by: Sachin Sahu <sachinksahu.431@gmail.com>
Signed-off-by: Sachin Sahu <sachinksahu.431@gmail.com>
Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

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

Have you tried this workflow on a fork?

.github/workflows/update-go-versions.yml Outdated Show resolved Hide resolved
@SachinSahu431
Copy link
Contributor Author

SachinSahu431 commented Mar 28, 2024

Update: Yes, the workflow is working as expected! We are getting a PR with autogenerated metric files.

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
@SachinSahu431 SachinSahu431 marked this pull request as ready for review April 2, 2024 04:05
@SachinSahu431
Copy link
Contributor Author

Hey!

Here is one example of autogenerated PR for Go version 1.22: SachinSahu431#2

Please let me know if we should modify the format of PR. For example: adding some labels, marking it draft by default, etc.

@SachinSahu431
Copy link
Contributor Author

Note that in supported_go_versions.txt, older Go versions are not being removed. Out of all versions listed in this txt file, only the top 3 versions are being used by update-go-version.bash file even if 4th (and later) versions are supported.

update-go-version.bash Outdated Show resolved Hide resolved
.github/workflows/update-go-versions.yml Outdated Show resolved Hide resolved
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
@ArthurSens
Copy link
Member

Note that in supported_go_versions.txt, older Go versions are not being removed. Out of all versions listed in this txt file, only the top 3 versions are being used by update-go-version.bash file even if 4th (and later) versions are supported.

I think this will cause confusion in the future 😬. Could we make sure that we only have the supported versions in the supported_go_versions file? I.e. the 3 latest go versions

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
@SachinSahu431
Copy link
Contributor Author

@ArthurSens made the changes, thanks! 🙌

@kakkoyun kakkoyun merged commit 76fa980 into prometheus:main Apr 4, 2024
9 checks passed
@SachinSahu431 SachinSahu431 deleted the metrics-generation-workflow branch April 12, 2024 12:18
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

Successfully merging this pull request may close these issues.

Auto increment supported Go version
3 participants