GoogleCloudPlatform / GoogleCloudPlatform/automlops

Code generation failed using github-actions

Open
#60 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
257
Forks
45
PR merge metrics
No merged PRs in 30d

Description

I tried the following code from the example in order to generate the scripts for github-actions. It errors out when validating the project_number parameter.

```
AutoMLOps.generate(project_id=PROJECT_ID,
pipeline_params=pipeline_params,
use_ci=True,
naming_prefix=MODEL_ID,
deployment_framework= 'github-actions',
project_number="666724832485",
schedule_pattern='59 11 * * 0', # retrain every Sunday at Midnight
setup_model_monitoring=True # use this if you would like to use Vertex Model Monitoring
)
```

The error message:

```
ValidationError: 3 validation errors for GitHubActionsConfig
workload_identity_pool
Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.3/v/string_type
workload_identity_provider
Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.3/v/string_type
workload_identity_service_account
Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.3/v/string_type
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the example AutoMLOps.generate call with deployment_framework set to github-actions and inspect the GitHubActionsConfig validation named in the traceback. Trace how project_number and the workload identity fields reach that configuration. Done means the reported example validates successfully or the required inputs are clearly reported.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, google-cloud, python
Domain
ci-cd, cloud, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.