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

Update micro build number #320

Closed

Conversation

paulacamargo25
Copy link
Contributor

Update micro build number to use day, month and year.

Closed: #290

@paulacamargo25 paulacamargo25 self-assigned this Apr 20, 2024
@paulacamargo25 paulacamargo25 added this to the April 2024 milestone Apr 20, 2024
Copy link
Member

@karthiknadig karthiknadig left a comment

Choose a reason for hiding this comment

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

This may not work. Let’s discuss with team.

@karthiknadig karthiknadig removed this from the April 2024 milestone Apr 24, 2024
@paulacamargo25 paulacamargo25 force-pushed the Update-micro-build-number branch from 016c53b to 53bd85e Compare May 2, 2024 00:17
@paulacamargo25 paulacamargo25 requested review from karthiknadig and removed request for karthiknadig May 28, 2024 02:16
"""
return f"1{datetime.datetime.now(tz=datetime.timezone.utc).strftime('%j%H%M')}"
return f"{datetime.datetime.now(tz=datetime.timezone.utc).strftime('%y%j')}.{os.environ.get("REV", "")}"
Copy link
Member

Choose a reason for hiding this comment

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

I think we can just do Julian day and rev. Since we already capture year for major.

@paulacamargo25 paulacamargo25 force-pushed the Update-micro-build-number branch from 5028363 to f6778b3 Compare June 7, 2024 22:01
@@ -45,9 +46,9 @@ def is_even(v: Union[int, str]) -> bool:

def micro_build_number() -> str:
"""Generates the micro build number.
The format is `1<Julian day><hour><minute>`.
The format is `<Year><Julian day><REV>`.
Copy link
Member

Choose a reason for hiding this comment

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

Since the version major is the year do we the full year. I think just YYJJJREV should be ok.

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

Successfully merging this pull request may close these issues.

VSIXes for the different platforms have different version numbers
2 participants