Skip to content

Conversation

@damonmcc
Copy link
Member

@damonmcc damonmcc commented Aug 12, 2025

related to #1895

CBBR publish runs were failing because versions like FY2026 aren't supported/parseable

successful publish run here

I added the printing of test coverage details to (in the future) help something like copilot suggest tests to cover changes. Might be better to do that all locally and feed it something like an XML file but this seemed harmless enough to add first.

@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.33%. Comparing base (f30a4ef) to head (3ef5f52).
⚠️ Report is 28 commits behind head on main.

Files with missing lines Patch % Lines
dcpy/utils/versions.py 66.66% 3 Missing and 1 partial ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
dcpy/utils/versions.py 86.34% <66.66%> (+2.88%) ⬆️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@damonmcc damonmcc force-pushed the dm-fy-versions branch 2 times, most recently from b5b096a to 9bdb753 Compare August 14, 2025 18:05
@damonmcc damonmcc marked this pull request as ready for review August 14, 2025 18:22
@damonmcc damonmcc requested a review from alexrichey August 14, 2025 18:22
[
"FY2020",
versions.Date(
date=date(2020, 1, 1),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a calendar year?

Copy link
Member Author

@damonmcc damonmcc Aug 20, 2025

Choose a reason for hiding this comment

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

yup all the DateVersionFormat formats are declared this way. like 31 is what makes this a fiscal_year version

Since the actual start of the city's fiscal year doesn't factor into how we version our data products, I went with January 1st (no extra logic for) for now

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, sorry, I spaced a little bit. (read too fast, and thought this was a date default, rather than a test case). All good.

match self.format:
case DateVersionFormat.fiscal_year:
if self.patch == 0:
return f"FY{self.date.strftime('%Y')}"
Copy link
Contributor

Choose a reason for hiding this comment

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

can you remind me what the label is used for?

Copy link
Member Author

Choose a reason for hiding this comment

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

looks like it's used in

  • connectors/edm/publishing.py when promoting a build to a draft
  • lifecycle/builds/plan.py to resolve previous and current versions when planning a build

@damonmcc damonmcc merged commit c0a49ac into main Sep 9, 2025
26 checks passed
@damonmcc damonmcc deleted the dm-fy-versions branch September 17, 2025 14:59
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.

3 participants