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

FarmVibes.AI 24.04 #157

Merged
merged 7 commits into from
Apr 5, 2024
Merged

FarmVibes.AI 24.04 #157

merged 7 commits into from
Apr 5, 2024

Conversation

renatolfc
Copy link
Contributor

@renatolfc renatolfc commented Apr 5, 2024

This is a sync of our repo. Here's the summary of the changes:

Support to new ADMA API version:

[💔 BREAKING CHANGES] We added support to the new Azure Data Manager for Agriculture (ADMA) API version 2023-11-01-preview. To comply with the new API, some of our data types, workflows, and notebooks were updated. A summary of the changes are:

Workflows:

  • [🎉 NEW] We added new workflows to download and process forest extent data. These workflows include: (i) the Advanced Land Observing Satellite (ALOS) forest/non-forest map, (ii) the Global Land Analysis (GLAD) forest map, and (iii) the Global Forest Change (Hansen) datasets. The processing workflow detects forest changes using statistical tests (specifically, the Cochran-Armitage test) to determine whether the change represents a trend.
  • [📈 IMPROVEMENT] We are releasing an updated version of the SpaceEye workflow that leverages Sentinel-1 RTC products instead of GRD products with SNAP preprocessing. These changes lead to a significant speedup and a decrease in disk space consumption. Faster, lighter, and cloudless-er images to y'all! Due to this new version of the workflow, cached results are invalid and will be recomputed on new runs.
  • [📈 IMPROVEMENT] We extended the data_ingestion/weather/download_herbie workflow to allow downloading both analysis (zero lead time) up to a point in time and then forecast with progressively increasing lead times after that.
  • [⚒️ FIX] We added a script to convert Segment Anything Model (SAM) weights to ONNX format and import it into the local FarmVibes.AI cluster to be used in the SAM workflows and notebooks. For instructions on how to use the script, refer to the "Adding SAM's ONNX models to the cluster" entry in our Troubleshooting page. Related to issues Error running basemap_segmentation workflow - sam_inference failed #145 and Unable to export SAM models to cluster due to missing file scripts/export_sam_models.py #153.
  • [💔 BREAKING CHANGES] Planetary Computer API key is required for all workflows that download or use Sentinel-1 products (e.g., data_ingestion/sentinel1/preprocess_s1 and data_ingestion/spaceeye/spaceeye). The documentation with the parameter description will be updated in a future release.

Backend:

  • [📈 IMPROVEMENT] We updated our base images to use Python 3.11. Additionally, our DAPR logs are now in JSON format.
  • [📈 IMPROVEMENT] We updated ngrok package to version 7.1.2, which will solve the issues with the What-if scenario evaluation for carbon sequestration notebook and farm_ai/carbon_local/carbon_whatif workflow. Related to issue What-if scenario evaluation for carbon sequestration notebook #151.
  • [📈 IMPROVEMENT] We improved our worker retry policy and are now using exponential backoff for retries. This means workers will be less idle on long queues, avoiding cases where workers would wait for one minute before starting a queued task.
  • [⚒️ FIX] We fixed an issue with the add-secret subcommand not adding secrets to the KeyVault during remote (AKS) cluster setup. Related to issue remote add-secret doesn’t work correctly #147.

Notebooks:

Documentation:

Client:

  • [📈 IMPROVEMENT & ⚒️ FIX] We made a few quality-of-life improvements and bug fixes to our python client. Users can now monitor the last n runs with client.monitor(n), which will print a summarized table with their progress, as well as retrieve the last n VibeWorkflowRun objects with client.get_last_runs(n) method. We also added minor bug fixes to the monitor and document_workflow methods, which were breaking for deleated runs and workflows with None/empty value parameters, respectivelly.

Co-authored-by: Bruno Silva brunosilva@microsoft.com
Co-authored-by: Eduardo Rodrigues edrodrigues@microsoft.com
Co-authored-by: Naga Bilwanth Gangarapu Naga@zensa.co
Co-authored-by: Rafael Padilha rpadilha@microsoft.com
Co-authored-by: Renato Luiz de Freitas Cunha renato.cunha@microsoft.com
Co-authored-by: Roberto de Moura Estevão Filho robertode@microsoft.com

farmvibes-ai-cd and others added 5 commits April 5, 2024 01:52
Co-authored-by: Alex Crown <acrown@microsoft.com>
Co-authored-by: Eduardo Rodrigues <edrodrigues@microsoft.com>
Co-authored-by: Rafael Padilha <rpadilha@microsoft.com>
Co-authored-by: Renato Luiz de Freitas Cunha <renato.cunha@microsoft.com>
Co-authored-by: Bruno Silva <brunosilva@microsoft.com>
Co-authored-by: Eduardo Rodrigues <edrodrigues@microsoft.com>
Co-authored-by: Jessica Wolk <Jessica.Wolk@microsoft.com>
Co-authored-by: Naga Bilwanth Gangarapu <Naga@zensa.co>
Co-authored-by: Rafael Padilha <rpadilha@microsoft.com>
Co-authored-by: Renato Luiz de Freitas Cunha <renato.cunha@microsoft.com>
Co-authored-by: Rick Gutierrez <ricardgu@microsoft.com>
- [🎉 NEW] We now support remote cluster creation on any Azure Cloud
  Environment, abstracting the requirements of different cloud
  environments and backend services. This means we now support
  deployments in sovereign clouds, such as the [US Government
  Cloud](https://learn.microsoft.com/en-us/azure/azure-government/documentation-government-welcome),
  the [German Cloud](https://learn.microsoft.com/en-us/azure/germany/),
  and the [China Cloud](https://learn.microsoft.com/en-us/azure/china/overview-operations),
  in addition to the Azure Public Cloud.
- [📈 IMPROVEMENT] We upgraded terraform provider to version 3.89.0 to
  support cluster setup through Azure Cloud Shell.
- [⚒️ FIX] We fixed an issue that would cause the local cluster setup to
  fail in case the cluster name had underscores. Related to issue #133.
- [📈 IMPROVEMENT] We revised the notebook dependencies and changed the
  default environment and package manager from Conda to
  [Micromamba](https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html).
  Environments should build considerably faster and present fewer
  dependency issues. Related to issues #141 and #144.
- [🎉 NEW] We added instructions on setting up the remote cluster using
  Azure Cloud Shell to the [Remote Cluster User
  Guide](https://microsoft.github.io/farmvibes-ai/docfiles/markdown/AKS.html).
- [⚒️ FIX] We fixed a bug that prevented the REST API documentation page
  to be rendered correctly. Related to issue #131.

----

Co-authored-by: Bruno Silva <brunosilva@microsoft.com>
Co-authored-by: Peter Hammond <v-phammond@microsoft.com>
Co-authored-by: Rafael Padilha <rpadilha@microsoft.com>
Co-authored-by: Renato Luiz de Freitas Cunha <renato.cunha@microsoft.com>
Co-authored-by: Rick Gutierrez <ricardgu@microsoft.com>
Co-authored-by: Bruno Silva <brunosilva@microsoft.com>
Co-authored-by: Naga Bilwanth Gangarapu <Naga@zensa.co>
Co-authored-by: Rafael Padilha <rpadilha@microsoft.com>
Co-authored-by: Renato Luiz de Freitas Cunha <renato.cunha@microsoft.com>
Co-authored-by: Roberto de Moura Estevão Filho <robertode@microsoft.com>
@renatolfc renatolfc changed the title From devops release 1086 FarmVibes.AI 24.04 Apr 5, 2024
@renatolfc renatolfc marked this pull request as ready for review April 5, 2024 17:32
@renatolfc renatolfc merged commit a1cad6a into main Apr 5, 2024
3 checks passed
@renatolfc renatolfc deleted the from-devops-release-1086 branch April 5, 2024 20:03
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.

5 participants