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

[tasks] Go modules RFC release tooling #7527

Merged
merged 7 commits into from
Mar 3, 2021
Merged

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Feb 25, 2021

What does this PR do?

  • Move GoModule to its own file
  • Create update_module and tag_version tasks to respectively update inter-module dependencies and tag versions.

Open questions

  • Should the task be used for an Agent 6 only release?
  • Should push be on by default?

Motivation

  • Part of Go Modules RFC (RFC 779)

Additional Notes

  • Right now update_modules is a no-op and tag_version only tags the main module with the 6 and 7 version tags.

Describe your test plan

  • For QA, during RCs use them to tag versions

tasks/release.py Outdated Show resolved Hide resolved
tasks/release.py Outdated Show resolved Hide resolved
@mx-psi mx-psi added changelog/no-changelog [deprecated] qa/skip-qa - use other qa/ labels [DEPRECATED] Please use qa/done or qa/no-code-change to skip creating a QA card [deprecated] team/agent-platform labels Feb 26, 2021
@mx-psi mx-psi added this to the 7.27.0 milestone Feb 26, 2021
Some runners do not have a sufficiently new Python version

* --commit COMMIT will tag COMMIT with the tags (default HEAD)
* --verify checks for correctness on the Agent version (on by default).
* --push will push the tags to the origin remote (on by default).
Copy link
Member Author

Choose a reason for hiding this comment

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

Should this be on by default? I think it's fine (the worst that can happen is an artifact on the staging repo) but we can have it off by default.

Comment on lines +30 to +31
if self.path == ".":
return ["6" + agent_version[1:], "7" + agent_version[1:]]
Copy link
Member Author

Choose a reason for hiding this comment

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

We always return Agent 6 and Agent 7 tags. Do we want to have an option for releases that are just for one of them?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can leave it like this for now. We can change it when we decouple the release cycles of A6 and A7 in the future.

@mx-psi mx-psi marked this pull request as ready for review February 26, 2021 11:22
@mx-psi mx-psi requested a review from a team as a code owner February 26, 2021 11:22
Copy link
Contributor

@albertvaka albertvaka left a comment

Choose a reason for hiding this comment

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

LGTM

if self.path == ".":
return "v" + agent_version

return "v0" + agent_version[1:]
Copy link
Contributor

Choose a reason for hiding this comment

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

Breaks for Agent 10 :P

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we will catch that when the time comes 😄

Comment on lines +30 to +31
if self.path == ".":
return ["6" + agent_version[1:], "7" + agent_version[1:]]
Copy link
Contributor

Choose a reason for hiding this comment

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

We can leave it like this for now. We can change it when we decouple the release cycles of A6 and A7 in the future.

@mx-psi mx-psi merged commit 0e4054a into master Mar 3, 2021
@mx-psi mx-psi deleted the mx-psi/gomodules-tasks branch March 3, 2021 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog [deprecated] qa/skip-qa - use other qa/ labels [DEPRECATED] Please use qa/done or qa/no-code-change to skip creating a QA card [deprecated] team/agent-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants