Skip to content

Conversation

machichima
Copy link
Member

@machichima machichima commented Mar 1, 2025

Tracking issue

#6237

Why are the changes needed?

Currently, configuring over multiple projects / domains can be painful as multiple commands need to be used for each setting.

What changes were proposed in this pull request?

A kubectl like config method is proposed, which enable providing multiple config simultaneously through flytectl update --attrFile config.yml. config.yml include configs from different subcommands specified by kind keyword (see example below). Multiple config file is also supported here by using flytectl update --attrFile config.yml --attrFile config1.yml.

---
kind: project
name: protein-design
id: protein-design
---
kind: workflow-execution-config
domain: development
project: protein-design
attributes:
    projectQuotaCpu: "1000"
    projectQuotaMemory: 10Ti
workflow_execution_config:
    security_context:
        run_as: [email protected]

How was this patch tested?

Unit test

Labels

Please add one or more of the following labels to categorize your PR:

  • added: For new features.
  • changed: For changes in existing functionality.
  • deprecated: For soon-to-be-removed features.
  • removed: For features being removed.
  • fixed: For any bug fixed.
  • security: In case of vulnerabilities

This is important to improve the readability of release notes.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

https://flyte--6292.org.readthedocs.build/en/6292/api/flytectl/gen/flytectl_update.html

Summary by Bito

This PR enhances flytectl's workflow execution by adding kubectl-like configuration support for multiple attribute files individually or via a directory. It modernizes file operations by replacing deprecated packages, refactors the configuration structure, and improves error handling. The changes include documentation updates reflecting these new capabilities and extensive updates to the monodocs-environment.lock.yaml file with dependency version changes.

Unit tests added: True

Estimated effort to review (1-5, lower is better): 5

@flyte-bot
Copy link
Collaborator

flyte-bot commented Mar 1, 2025

Code Review Agent Run #38bf67

Actionable Suggestions - 1
  • flytectl/cmd/config/subcommand/workflowexecutionconfig/attrupdateconfig_flags.go - 1
    • Type mismatch between flag and struct definition · Line 53-53
Review Details
  • Files reviewed - 5 · Commit Range: b8a0b09..2f38c33
    • flytectl/cmd/config/subcommand/workflowexecutionconfig/attrupdateconfig_flags.go
    • flytectl/cmd/config/subcommand/workflowexecutionconfig/update_config.go
    • flytectl/cmd/testutils/test_utils.go
    • flytectl/cmd/update/matchable_workflow_execution_config.go
    • flytectl/cmd/update/matchable_workflow_execution_config_test.go
  • Files skipped - 0
  • Tools
    • Golangci-lint (Linter) - ✖︎ Failed
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

AI Code Review powered by Bito Logo

Copy link

codecov bot commented Mar 1, 2025

Codecov Report

Attention: Patch coverage is 50.34965% with 71 lines in your changes missing coverage. Please review.

Project coverage is 58.44%. Comparing base (ff7e79f) to head (65fe6b2).
Report is 27 commits behind head on master.

Files with missing lines Patch % Lines
flytectl/cmd/update/update.go 51.72% 19 Missing and 9 partials ⚠️
flytectl/cmd/config/attrupdateconfig_flags.go 22.22% 21 Missing ⚠️
flytectl/cmd/testutils/test_utils.go 0.00% 10 Missing ⚠️
...cmd/update/matchable_cluster_resource_attribute.go 75.00% 1 Missing and 1 partial ⚠️
...tl/cmd/update/matchable_execution_cluster_label.go 75.00% 1 Missing and 1 partial ⚠️
.../cmd/update/matchable_execution_queue_attribute.go 75.00% 1 Missing and 1 partial ⚠️
flytectl/cmd/update/matchable_plugin_override.go 75.00% 1 Missing and 1 partial ⚠️
...tl/cmd/update/matchable_task_resource_attribute.go 75.00% 1 Missing and 1 partial ⚠️
.../cmd/update/matchable_workflow_execution_config.go 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #6292       +/-   ##
===========================================
+ Coverage   33.82%   58.44%   +24.62%     
===========================================
  Files        1329      938      -391     
  Lines      147808    71200    -76608     
===========================================
- Hits        49992    41614     -8378     
+ Misses      92974    26418    -66556     
+ Partials     4842     3168     -1674     
Flag Coverage Δ
unittests-datacatalog 59.03% <ø> (+11.02%) ⬆️
unittests-flyteadmin 56.30% <ø> (+6.20%) ⬆️
unittests-flytecopilot 30.99% <ø> (ø)
unittests-flytectl 64.10% <50.34%> (+6.00%) ⬆️
unittests-flyteidl 76.12% <ø> (+69.33%) ⬆️
unittests-flyteplugins 61.00% <ø> (+11.98%) ⬆️
unittests-flytepropeller 54.82% <ø> (+18.29%) ⬆️
unittests-flytestdlib 64.04% <ø> (+13.66%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@flyte-bot
Copy link
Collaborator

flyte-bot commented Mar 1, 2025

Changelist by Bito

This pull request implements the following key changes.

Key Change Files Impacted
New Feature - Enhanced Multi-File Configuration for Update Commands

update_config.go - Added AttrUpdateConfig struct to support multi-file configurations.

update.go - Refactored update command logic to parse and process multiple --attrFile inputs.

Bug Fix - Refined Attribute File Validation in Update Commands

matchable_cluster_resource_attribute.go - Modified error handling for missing attribute file in cluster resource updates.

matchable_execution_cluster_label.go - Improved conditional checks for proper attribute file validation.

matchable_execution_queue_attribute.go - Adjusted logic to correctly validate the presence of attrFile.

matchable_plugin_override.go - Refactored file check conditions to better handle plugin override updates.

matchable_task_resource_attribute.go - Updated conditional checks to ensure accurate file validation for task resource attributes.

matchable_workflow_execution_config.go - Refined file validation logic for workflow execution configuration updates.

Feature Improvement - Improved Configuration Defaults and Flag Parsing

attrupdateconfig_flags.go - Introduced new helper functions for pflag generation and robust flag parsing in AttrUpdateConfig.

file_config.go - Added a default configuration variable for cluster resource attributes.

file_config.go - Defined a default configuration for execution cluster label.

file_config.go - Provided a default configuration variable for execution queue attributes.

file_config.go - Added a default config for plugin overrides.

file_config.go - Introduced default configuration for task resource attributes.

file_config.go - Added a default configuration variable for workflow execution configurations.

Testing - Extended Test Coverage for New and Updated Features

attrupdateconfig_flags_test.go - Implemented tests for verifying the new flag configurations.

test_utils.go - Introduced a utility function to verify log output counts.

update_test.go - Enhanced tests to validate multi-file config behavior and simulate subcommand executions.

Documentation - Updated Documentation for Enhanced Configuration

flytectl_demo_reload.rst - Updated documentation to reflect the new configuration options and added details about the port flag.

flytectl_demo_start.rst - Updated demo docs with new port flag instructions.

flytectl_sandbox_start.rst - Enhanced sandbox start docs with port option details.

flytectl_update.rst - Added YAML configuration examples and updated update command flags; Revised update help text for clarity.

flytectl_update_workflow-execution-config.rst - Refined workflow execution config docs, consolidated instructions and removed redundant examples.

Other Improvements - Dependency Updates in Environment Lock File

monodocs-environment.lock.yaml - Combined update: Updated dependency versions, URLs, and checksums; removed obsolete package entries and refreshed configuration details for enhanced compatibility.

func (cfg AttrUpdateConfig) GetPFlagSet(prefix string) *pflag.FlagSet {
cmdFlags := pflag.NewFlagSet("AttrUpdateConfig", pflag.ExitOnError)
cmdFlags.StringVar(&DefaultUpdateConfig.AttrFile, fmt.Sprintf("%v%v", prefix, "attrFile"), DefaultUpdateConfig.AttrFile, "attribute file name to be used for updating attribute for the resource type.")
cmdFlags.StringSliceVar(&DefaultUpdateConfig.AttrFile, fmt.Sprintf("%v%v", prefix, "attrFile"), DefaultUpdateConfig.AttrFile, "attribute file name to be used for updating attribute for the resource type.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Type mismatch between flag and struct definition

The type of AttrFile is being changed from string to []string (via StringSliceVar), but the struct definition in the related files still defines it as string. This will cause type mismatch issues when accessing this field.

Code suggestion
Check the AI-generated fix before applying
Suggested change
cmdFlags.StringSliceVar(&DefaultUpdateConfig.AttrFile, fmt.Sprintf("%v%v", prefix, "attrFile"), DefaultUpdateConfig.AttrFile, "attribute file name to be used for updating attribute for the resource type.")
cmdFlags.StringVar(&DefaultUpdateConfig.AttrFile, fmt.Sprintf("%v%v", prefix, "attrFile"), DefaultUpdateConfig.AttrFile, "attribute file name to be used for updating attribute for the resource type.")

Code Review Run #38bf67


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

Signed-off-by: machichima <[email protected]>
@flyte-bot
Copy link
Collaborator

flyte-bot commented Mar 1, 2025

Code Review Agent Run #7699d3

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: 2f38c33..f43ae50
    • flytectl/cmd/config/subcommand/workflowexecutionconfig/attrupdateconfig_flags.go
    • flytectl/cmd/config/subcommand/workflowexecutionconfig/attrupdateconfig_flags_test.go
  • Files skipped - 0
  • Tools
    • Golangci-lint (Linter) - ✖︎ Failed
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

AI Code Review powered by Bito Logo

@flyte-bot
Copy link
Collaborator

flyte-bot commented Mar 10, 2025

Code Review Agent Run #988f93

Actionable Suggestions - 1
  • flytectl/cmd/config/attrupdateconfig_flags.go - 1
    • Possible pointer dereferencing issue in elemValueOrNil · Line 22-22
Review Details
  • Files reviewed - 10 · Commit Range: f43ae50..62def7b
    • flytectl/cmd/config/attrupdateconfig_flags.go
    • flytectl/cmd/config/attrupdateconfig_flags_test.go
    • flytectl/cmd/config/subcommand/workflowexecutionconfig/attrupdateconfig_flags.go
    • flytectl/cmd/config/subcommand/workflowexecutionconfig/attrupdateconfig_flags_test.go
    • flytectl/cmd/config/subcommand/workflowexecutionconfig/update_config.go
    • flytectl/cmd/config/update_config.go
    • flytectl/cmd/update/interfaces/updater.go
    • flytectl/cmd/update/matchable_workflow_execution_config.go
    • flytectl/cmd/update/matchable_workflow_execution_config_test.go
    • flytectl/cmd/update/update.go
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

AI Code Review powered by Bito Logo

if reflect.ValueOf(v).IsNil() {
return reflect.Zero(t.Elem()).Interface()
} else {
return reflect.ValueOf(v).Interface()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Possible pointer dereferencing issue in elemValueOrNil

The else branch in elemValueOrNil returns reflect.ValueOf(v).Interface() which doesn't dereference the pointer. This will return the pointer itself rather than the value it points to. Consider using reflect.ValueOf(v).Elem().Interface() to properly dereference the pointer.

Code suggestion
Check the AI-generated fix before applying
Suggested change
return reflect.ValueOf(v).Interface()
return reflect.ValueOf(v).Elem().Interface()

Code Review Run #988f93


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@flyte-bot
Copy link
Collaborator

flyte-bot commented Mar 14, 2025

Code Review Agent Run #ea5294

Actionable Suggestions - 1
  • flytectl/cmd/update/matchable_cluster_resource_attribute.go - 1
    • Consider more explicit struct emptiness check · Line 67-68
Filtered by Review Rules

Bito filtered these suggestions based on rules created automatically for your feedback. Manage rules.

  • flytectl/cmd/update/update.go - 1
Review Details
  • Files reviewed - 13 · Commit Range: 62def7b..f4d4a28
    • flytectl/cmd/config/subcommand/clusterresourceattribute/file_config.go
    • flytectl/cmd/config/subcommand/executionclusterlabel/file_config.go
    • flytectl/cmd/config/subcommand/executionqueueattribute/file_config.go
    • flytectl/cmd/config/subcommand/plugin_override/file_config.go
    • flytectl/cmd/config/subcommand/taskresourceattribute/file_config.go
    • flytectl/cmd/config/subcommand/workflowexecutionconfig/file_config.go
    • flytectl/cmd/update/matchable_cluster_resource_attribute.go
    • flytectl/cmd/update/matchable_execution_cluster_label.go
    • flytectl/cmd/update/matchable_execution_queue_attribute.go
    • flytectl/cmd/update/matchable_plugin_override.go
    • flytectl/cmd/update/matchable_task_resource_attribute.go
    • flytectl/cmd/update/matchable_workflow_execution_config.go
    • flytectl/cmd/update/update.go
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

Refer to the documentation for additional commands.

Configuration

This repository uses code_review_bito You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

Comment on lines +67 to +68
} else if *clusterresourceattribute.DefaultAttrFileConfig == clustrResourceAttrFileConfig {
return fmt.Errorf("attrFile is mandatory while calling update for cluster resource attribute")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider more explicit struct emptiness check

The condition *clusterresourceattribute.DefaultAttrFileConfig == clustrResourceAttrFileConfig is checking if the attribute file config is empty, but this comparison might not work as expected for structs. Consider using a more explicit check for empty fields instead.

Code suggestion
Check the AI-generated fix before applying
Suggested change
} else if *clusterresourceattribute.DefaultAttrFileConfig == clustrResourceAttrFileConfig {
return fmt.Errorf("attrFile is mandatory while calling update for cluster resource attribute")
} else if clustrResourceAttrFileConfig.Project == "" && clustrResourceAttrFileConfig.Domain == "" && clustrResourceAttrFileConfig.Workflow == "" {
return fmt.Errorf("attrFile is mandatory while calling update for cluster resource attribute")

Code Review Run #ea5294


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@flyte-bot
Copy link
Collaborator

flyte-bot commented Mar 15, 2025

Code Review Agent Run #c58d0b

Actionable Suggestions - 0
Review Details
  • Files reviewed - 7 · Commit Range: f4d4a28..b3a5500
    • flytectl/cmd/update/interfaces/updater.go
    • flytectl/cmd/update/matchable_execution_cluster_label.go
    • flytectl/cmd/update/matchable_execution_queue_attribute.go
    • flytectl/cmd/update/matchable_plugin_override.go
    • flytectl/cmd/update/matchable_task_resource_attribute.go
    • flytectl/cmd/update/matchable_workflow_execution_config.go
    • flytectl/cmd/update/update.go
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

Refer to the documentation for additional commands.

Configuration

This repository uses code_review_bito You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@flyte-bot
Copy link
Collaborator

flyte-bot commented Mar 15, 2025

Code Review Agent Run #85577c

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: b3a5500..1f4a819
    • flytectl/cmd/update/update.go
    • flytectl/cmd/update/update_test.go
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

Refer to the documentation for additional commands.

Configuration

This repository uses code_review_bito You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

Signed-off-by: machichima <[email protected]>
@flyte-bot
Copy link
Collaborator

flyte-bot commented Mar 15, 2025

Code Review Agent Run #d139b4

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: 1f4a819..a48b410
    • flytectl/cmd/update/update.go
    • flytectl/cmd/update/update_test.go
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

Refer to the documentation for additional commands.

Configuration

This repository uses code_review_bito You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@machichima machichima changed the title [WIP] [FlyteCTL] enable kubectl-like configuration from multiple files [FlyteCTL] enable kubectl-like configuration from multiple files Mar 16, 2025
@flyte-bot
Copy link
Collaborator

flyte-bot commented Mar 16, 2025

Code Review Agent Run #66e219

Actionable Suggestions - 19
Additional Suggestions - 10
Review Details
  • Files reviewed - 7 · Commit Range: a48b410..65fe6b2
    • flytectl/cmd/update/update.go
    • flytectl/docs/source/gen/flytectl_demo_reload.rst
    • flytectl/docs/source/gen/flytectl_demo_start.rst
    • flytectl/docs/source/gen/flytectl_sandbox_start.rst
    • flytectl/docs/source/gen/flytectl_update.rst
    • flytectl/docs/source/gen/flytectl_update_workflow-execution-config.rst
    • monodocs-environment.lock.yaml
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

Refer to the documentation for additional commands.

Configuration

This repository uses code_review_bito You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

manager: conda
platform: linux-64
dependencies:
botocore: '>=1.36.18,<1.37.0'
botocore: '>=1.37.13,<1.38.0'
jmespath: '>=0.7.1,<2.0.0'
python: '>=3.9'
s3transfer: '>=0.11.0,<0.12.0'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Possible unintended dependency replacement

The dependency packaging: '>=16.8' has been replaced with pyyaml: '>=3.10'. However, looking at the updated code context, both dependencies are needed as they appear together in other sections (e.g., lines 2402 and 2426). This change might have been unintentional and could cause issues if the packaging dependency is required at this location.

Code suggestion
Check the AI-generated fix before applying
Suggested change
s3transfer: '>=0.11.0,<0.12.0'
packaging: '>=16.8'
pyyaml: '>=3.10'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

numpy: '>=1.17'
pyarrow: '>=8.0.0'
python: '>=3.8.0'
requests: '>=2.19.0'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Potential security risk in requests downgrade

The dependency requirement for requests is being downgraded from >=2.32.2 to >=2.19.0. This older version might have security vulnerabilities that have been fixed in newer versions. Consider maintaining the requirement for the newer version.

Code suggestion
Check the AI-generated fix before applying
Suggested change
requests: '>=2.19.0'
requests: '>=2.32.2'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

Comment on lines +4459 to +4461
sortedcontainers: '>=2.0.5'
psutil: '>=5.7.2'
cytoolz: '>=0.10.1'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider keeping urllib3 dependency

The PR replaces urllib3: '>=1.24.3' with three new dependencies: sortedcontainers: '>=2.0.5', psutil: '>=5.7.2', and cytoolz: '>=0.10.1'. However, it appears that urllib3 is still required as it's present in the updated code at line 4455. Consider keeping urllib3 dependency alongside the new dependencies to maintain compatibility.

Code suggestion
Check the AI-generated fix before applying
Suggested change
sortedcontainers: '>=2.0.5'
psutil: '>=5.7.2'
cytoolz: '>=0.10.1'
urllib3: '>=1.24.3'
sortedcontainers: '>=2.0.5'
psutil: '>=5.7.2'
cytoolz: '>=0.10.1'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

jinja2: '>=3.1.2'
python: '>=3.9'
blinker: '>=1.9'
itsdangerous: '>=2.2'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider keeping both dependencies

The dependency itsdangerous: '>=2.2' has been replaced with click: '>=8.1.3'. However, looking at the updated code context, both dependencies are needed for Flask. The itsdangerous dependency is still present at line 5007, but it appears this change might have been intended to add click rather than replace itsdangerous. Consider keeping both dependencies.

Code suggestion
Check the AI-generated fix before applying
Suggested change
itsdangerous: '>=2.2'
click: '>=8.1.3'
itsdangerous: '>=2.2'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

proto-plus: '>=1.25.0,<2.0.0'
google-auth: '>=2.14.1,<3.0.0'
googleapis-common-protos: '>=1.56.2,<2.0.0'
protobuf: '>=3.19.5,<7.0.0,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Inconsistent protobuf version constraints between platforms

The protobuf version constraint has been updated to allow versions up to <7.0.0 in the osx-arm64 platform, while the osx-64 platform still uses <6.0.0.dev0. This inconsistency might cause compatibility issues when the same code runs on different platforms. Consider aligning the version constraints across platforms.

Code suggestion
Check the AI-generated fix before applying
Suggested change
protobuf: '>=3.19.5,<7.0.0,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5'
protobuf: '>=3.19.5,<6.0.0.dev0,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

protobuf: '>=3.20.2,<6.0.0dev,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5'
proto-plus: '>=1.22.3,<2.0.0dev'
tqdm: '>=4.7.4,<=5.0.0dev'
pyarrow: '>=3.0.0'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Dependency removed but still used

The diff is removing bigquery-magics: '>=0.1.0' dependency but it appears to still be used in the updated code (line 6692). Consider keeping this dependency to avoid potential runtime errors.

Code suggestion
Check the AI-generated fix before applying
 @@ -6680,6 +6680,7 @@
 +    python: '>=3.9'
 +    pandas: '>=1.1.0'
 +    protobuf: '>=3.20.2,<6.0.0dev,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5'
 +    proto-plus: '>=1.22.3,<2.0.0dev'
 +    tqdm: '>=4.7.4,<=5.0.0dev'
 +    pyarrow: '>=3.0.0'
 +    bigquery-magics: '>=0.1.0'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

pandas: '>=0.21.1'
pyarrow: '>=0.15.0'
python: '>=3.9'
google-cloud-bigquery-storage-core: 2.27.0.*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider keeping required dependencies

The diff shows that pyarrow: '>=0.15.0' and python: '>=3.9' dependencies are being removed and replaced with google-cloud-bigquery-storage-core: 2.27.0.*. Looking at the updated code context, it appears that pyarrow and python dependencies are still present in the file (lines 6786-6787 and 6799-6800), but they might be missing from this specific platform section. Consider keeping these dependencies if they're required for this platform configuration.

Code suggestion
Check the AI-generated fix before applying
Suggested change
google-cloud-bigquery-storage-core: 2.27.0.*
google-cloud-bigquery-storage-core: 2.27.0.*
pyarrow: '>=0.15.0'
python: '>=3.9'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

anyio: '>=3.0,<5.0'
certifi: ''
h11: '>=0.13,<0.15'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing dependency in platform configuration

The change replaces certifi: '' with h11: '>=0.13,<0.15' in the dependencies. Looking at the context, it appears that certifi is still needed as it's present in other platform configurations (like osx-64 at line 8115). Consider adding certifi back to maintain consistency across platform configurations.

Code suggestion
Check the AI-generated fix before applying
Suggested change
h11: '>=0.13,<0.15'
h11: '>=0.13,<0.15'
certifi: ''

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@@ -8816,11 +8770,11 @@ package:
manager: conda
platform: osx-arm64
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider keeping stack_data dependency

The PR adds two new dependencies (pygments >= 2.4.0 and jedi >= 0.16) to the ipython package configuration in the lock file, while removing the stack_data dependency. This might impact the functionality of ipython. Consider keeping the stack_data dependency if it's still required, as it appears to be present in other ipython configurations in the file.

Code suggestion
Check the AI-generated fix before applying
Suggested change
platform: osx-arm64
pygments: '>=2.4.0'
jedi: '>=0.16'
stack_data: ''

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

pkgutil-resolve-name: '>=1.3.10'
python: '>=3.9'
jsonschema-specifications: '>=2023.03.6'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider keeping both dependencies instead of replacing

The dependency change from python: '>=3.9' to jsonschema-specifications: '>=2023.03.6' at this line appears to be a mistake. Looking at the surrounding context, both dependencies are needed separately as they serve different purposes. The Python version requirement should not be replaced by the jsonschema-specifications dependency.

Code suggestion
Check the AI-generated fix before applying
Suggested change
jsonschema-specifications: '>=2023.03.6'
jsonschema-specifications: '>=2023.03.6'
python: '>=3.9'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

rfc3986-validator: '>0.1.0'
uri-template: ''
jsonschema: '>=4.23.0,<4.23.1.0a0'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider keeping uri-template dependency

The change replaces uri-template: '' with jsonschema: '>=4.23.0,<4.23.1.0a0'. Looking at the surrounding context, it appears that uri-template is still needed as a dependency (it exists in other sections of the file). Consider adding back the uri-template dependency rather than replacing it.

Code suggestion
Check the AI-generated fix before applying
Suggested change
jsonschema: '>=4.23.0,<4.23.1.0a0'
jsonschema: '>=4.23.0,<4.23.1.0a0'
uri-template: ''

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

importlib-metadata: ''
nbclient: '>=0.2'
attrs: ''
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider adding instead of replacing dependency

The dependency attrs is being replaced with pyyaml at line 9555. However, looking at the updated code context, both dependencies appear to be needed as attrs is still present at line 9559. Consider adding pyyaml while keeping attrs instead of replacing it.

Code suggestion
Check the AI-generated fix before applying
Suggested change
attrs: ''
attrs: ''
pyyaml: ''

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

namex: ''
numpy: ''
ml_dtypes: ''
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider keeping both dependencies

The dependency numpy has been replaced with ml_dtypes in this section of the lock file. However, looking at the updated code context, both dependencies appear to be needed in the keras package. Consider keeping both dependencies rather than replacing one with the other.

Code suggestion
Check the AI-generated fix before applying
Suggested change
ml_dtypes: ''
ml_dtypes: ''
numpy: ''

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

python: '>=3.9,<3.10.0a0'
python_abi: 3.9.*
url: https://conda.anaconda.org/conda-forge/osx-arm64/multiprocess-0.70.16-py39h06df861_1.conda
url: https://conda.anaconda.org/conda-forge/osx-arm64/multiprocess-0.70.15-py39h0f82c59_1.conda
Copy link
Collaborator

Choose a reason for hiding this comment

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

Version mismatch in package URL

The URL for multiprocess package has been downgraded from version 0.70.16 to 0.70.15. This appears to be inconsistent with the version declaration at line 15403 which specifies version 0.70.16. Consider updating the URL to match the declared version or update the version declaration to match the URL.

Code suggestion
Check the AI-generated fix before applying
Suggested change
url: https://conda.anaconda.org/conda-forge/osx-arm64/multiprocess-0.70.15-py39h0f82c59_1.conda
url: https://conda.anaconda.org/conda-forge/osx-arm64/multiprocess-0.70.16-py39h06df861_1.conda

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

python: '>=3.9'
importlib-metadata: '>=3.6'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Possible unintended dependency replacement

The dependency importlib-metadata: '>=3.6' has been replaced with jupyterlab_pygments: ''. However, looking at the updated code context, importlib-metadata is still needed and appears on line 15808. This change might have been intended to add jupyterlab_pygments as a new dependency rather than replacing an existing one. Consider adding jupyterlab_pygments without removing importlib-metadata.

Code suggestion
Check the AI-generated fix before applying
Suggested change
importlib-metadata: '>=3.6'
jupyterlab_pygments: ''
importlib-metadata: '>=3.6'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

pandas: ''
pillow: '>=1.1.6'
packaging: ''
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider keeping both dependencies instead of replacing

The change replaces pillow: '>=1.1.6' with packaging: '' at line 15975. However, looking at the updated code context, both dependencies are needed in this section. Consider keeping both dependencies instead of replacing one with the other.

Code suggestion
Check the AI-generated fix before applying
Suggested change
packaging: ''
packaging: ''
pillow: '>=1.1.6'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

httpx: '>=0.23.0,<1'
jiter: '>=0.4.0,<1'
distro: '>=1.7.0,<2'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Possible unintended dependency replacement

The dependency jiter has been replaced with distro in this section of the lock file. However, looking at the updated code context, both dependencies are actually needed as they appear together in other sections (e.g., lines 16482 and 16507). This change might be unintentional and could cause dependency issues.

Code suggestion
Check the AI-generated fix before applying
Suggested change
distro: '>=1.7.0,<2'
distro: '>=1.7.0,<2'
jiter: '>=0.4.0,<1'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

Comment on lines +16702 to +16704
opentelemetry-semantic-conventions: 0.52b0
packaging: '>=18.0'
python: '>=3.9'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider Python version compatibility implications

The Python version requirement has been updated from >=3.7 to >=3.9. This change might break compatibility with Python 3.7 and 3.8 environments. Consider whether this is an intentional upgrade requirement or if backward compatibility should be maintained.

Code suggestion
Check the AI-generated fix before applying
Suggested change
opentelemetry-semantic-conventions: 0.52b0
packaging: '>=18.0'
python: '>=3.9'
opentelemetry-semantic-conventions: 0.52b0
packaging: '>=18.0'
python: '>=3.7'

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

pyarrow: '>=4.0.0'
python: '>=3.9'
url: https://conda.anaconda.org/conda-forge/noarch/pyspark-3.5.4-pyhd8ed1ab_0.conda
url: https://conda.anaconda.org/conda-forge/noarch/pyspark-3.5.5-pyhd8ed1ab_0.conda
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing dependencies in pyspark package URL update

The URL for the pyspark package has been updated from version 3.5.4 to 3.5.5, but the dependencies section that was present in the original file has been removed. This could lead to missing dependency information when the package is installed or used.

Code suggestion
Check the AI-generated fix before applying
 @@ -19700,2 +19700,4 @@
      py4j: 0.10.9.7
 +    pyarrow: '>=4.0.0'
 +    python: '>=3.9'
    url: https://conda.anaconda.org/conda-forge/noarch/pyspark-3.5.5-pyhd8ed1ab_0.conda

Code Review Run #66e219


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@edanielson-ginkgo
Copy link

What's the next steps for this? I'm in the process of building out our Flyte management infrastructure and would really love this feature.

@Sovietaced
Copy link
Member

@machichima do you still want to land this? If so I can take a look and we can merge this.

@machichima
Copy link
Member Author

@machichima do you still want to land this? If so I can take a look and we can merge this.

Yes please! Please let me know if anything needs to be improved

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