Skip to content

Conversation

emmaai
Copy link
Contributor

@emmaai emmaai commented Jun 13, 2025

As the tile. Current develop is tagged as develop_1.8 for record.

  • integrated changes made by @Ariana-B on the branch integrate_1.9 wrt update on odc.*>1.9
  • shuffled numexpr related functionality back to odc-algo
  • adopted native_loading from odc-algo atm, further discussion on shuffling the code again

Note that:

  • tests on code run code check should pass
  • tests on the older docker image statistician test and push won't as it has old dependencies.

Copy link

codecov bot commented Jun 13, 2025

Codecov Report

Attention: Patch coverage is 83.01486% with 80 lines in your changes missing coverage. Please review.

Project coverage is 81.50%. Comparing base (d208092) to head (2245438).
Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
odc/stats/io.py 68.42% 48 Missing ⚠️
odc/stats/model.py 73.80% 11 Missing ⚠️
odc/stats/_gjson.py 45.45% 6 Missing ⚠️
odc/stats/tasks.py 73.68% 5 Missing ⚠️
odc/stats/proc.py 66.66% 3 Missing ⚠️
odc/stats/_grouper.py 96.00% 2 Missing ⚠️
odc/stats/_text.py 91.66% 1 Missing ⚠️
odc/stats/plugins/lc_ml_treelite.py 80.00% 1 Missing ⚠️
odc/stats/plugins/lc_tf_urban.py 80.00% 1 Missing ⚠️
tests/__init__.py 50.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #195      +/-   ##
===========================================
+ Coverage    81.47%   81.50%   +0.03%     
===========================================
  Files           50       53       +3     
  Lines         4604     4824     +220     
===========================================
+ Hits          3751     3932     +181     
- Misses         853      892      +39     

☔ 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.

@emmaai emmaai requested review from SpacemanPaul and Ariana-B June 16, 2025 05:13
@emmaai emmaai marked this pull request as ready for review June 17, 2025 05:38
Copy link
Contributor

@SpacemanPaul SpacemanPaul left a comment

Choose a reason for hiding this comment

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

A couple of minor tweaks and/or clarifications requested. Otherwise looking great!

tests on the older docker image statistician test and push won't as it has old dependencies.

It should be possible to get this working before merge, and doing so would make me feel a bit more comfortable - we do always run stats in a docker container after all. Happy to have different docker image tags for 1.8 and 1.9 branches if that helps.

@emmaai
Copy link
Contributor Author

emmaai commented Jun 18, 2025

A couple of minor tweaks and/or clarifications requested. Otherwise looking great!

tests on the older docker image statistician test and push won't as it has old dependencies.

It should be possible to get this working before merge, and doing so would make me feel a bit more comfortable - we do always run stats in a docker container after all. Happy to have different docker image tags for 1.8 and 1.9 branches if that helps.

It is possible but it'll defy the purpose of failing it in the long run. the docker image won't be published/pushed if failure after merging, which guarantees:

  • either stats or dependencies failure would stop docker image into production
  • the dependencies-only update will guarantee old version of stats is till working (hence failed in this pr as old version of stats not working anymore)

@SpacemanPaul
Copy link
Contributor

A couple of minor tweaks and/or clarifications requested. Otherwise looking great!

tests on the older docker image statistician test and push won't as it has old dependencies.

It should be possible to get this working before merge, and doing so would make me feel a bit more comfortable - we do always run stats in a docker container after all. Happy to have different docker image tags for 1.8 and 1.9 branches if that helps.

It is possible but it'll defy the purpose of failing it in the long run. the docker image won't be published/pushed if failure after merging, which guarantees:

OK I was confused about how the github actions work. Agreed.

@emmaai emmaai requested a review from SpacemanPaul June 19, 2025 00:01
@emmaai emmaai requested a review from Ariana-B June 19, 2025 00:07
dataset.metadata_doc, skip_validation=True
)
# it will grab all useful input dataset preperties
dataset_assembler._inherit_properties_from(
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 still necessary now that we're no longer passing dataset_assembler the dataset doc?

Copy link
Contributor Author

@emmaai emmaai Jun 19, 2025

Choose a reason for hiding this comment

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

the serialised dataset doc is still passed to dataset_assembler to grab some properties. I broke the same functionality in 3 parts,

  • validate classifier 401
  • inherit properties from source 418
  • record lineage 422

Copy link
Contributor

Choose a reason for hiding this comment

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

But doesn't this mean that we're treating the one dataset as both the source the derived dataset? Or does the distinction not particularly matter in this case

tree = LineageTree.from_eo3_doc(ds.metadata_doc)
lineage |= (
tree.child_datasets() if tree.child_datasets() else {tree.dataset_id}
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh yeah, that's much better.

@emmaai emmaai merged commit 1ec34db into develop Jun 19, 2025
8 of 10 checks passed
@emmaai emmaai deleted the develop_1.9 branch June 19, 2025 05:55
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