terraform-ibm-modules / stack-retrieval-augmented-generation

A deployable architecture that automates the deployment of a sample gen AI Pattern on IBM Cloud, including all underlying IBM Cloud and WatsonX infrastructure.
Apache License 2.0
1 stars 11 forks source link

Add cc pipeline properties (app-name specifically) to ALM #208

Closed brendankellyibm closed 1 month ago

brendankellyibm commented 1 month ago

Description

Added cc_pipeline_properties to standard/basic definitions of the ALM component, so that we can have the app-nameparameter available in the CC toolchain for dynamic scans

Release required?

Release notes content

Run the pipeline

If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.

Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:

/run pipeline

Checklist for reviewers

For mergers

brendankellyibm commented 1 month ago

I'll make more changes to this - will need to include the existing default variables.

brendankellyibm commented 1 month ago

Should be ok now.

brendankellyibm commented 1 month ago

/run pipeline

ocofaigh commented 1 month ago

/run pipeline

ocofaigh commented 1 month ago

Now that https://github.com/terraform-ibm-modules/terraform-ibm-rag-sample-da/pull/189 is merged, we need to bump the sample app to the latest version in this PR before merge, and then use this PR to generate 2.0.1.

We also probably want to do an upgrade test from 2.0.0 first too.

ocofaigh commented 1 month ago

/run pipeline

ocofaigh commented 1 month ago

Saw this error:

         2024/10/14 14:24:26 Terraform init | Error while installing ibm-cloud/ibm v1.69.2: could not query provider
         2024/10/14 14:24:26 Terraform init | registry for registry.terraform.io/ibm-cloud/ibm: failed to retrieve
         2024/10/14 14:24:26 Terraform init | cryptographic signature for provider: the request failed after 2 attempts,
         2024/10/14 14:24:26 Terraform init | please try again later: 500 Internal Server Error returned from github.com
         2024/10/14 14:24:26 Terraform INIT error: Terraform INIT errorexit status 1
         2024/10/14 14:24:26 Could not execute job: Error : Terraform INIT errorexit status 1

And an issue deleting resource group (which I have a support case open for). Unrelated to the changes in this pr, so re-running..

ocofaigh commented 1 month ago

/run pipeline

ocofaigh commented 1 month ago

There is also a fix for cloud logs which I want to get into 2.0.1 -> https://github.com/terraform-ibm-modules/terraform-ibm-observability-instances/issues/587

ocofaigh commented 1 month ago

Ah I just realised that if we pick up that fix, we will have to remove logdna support, as it has been removed from the module now. I think we will have to proceed with what is in this PR for the 2.0.1 release. The Cloud logs issue can be solved by simply re-running the apply (since its a timing issue with auth policy). I'll document that for now.

ocofaigh commented 1 month ago

On second thoughts, the RAG stack no longer deploys logdna, so its probably fine - waiting for Igor to confirm

in-1911 commented 1 month ago

As discussed on slack - I am ok with bringing in the Observability DA that no longer has LogDNA option at all - as long as RAG Stack 2.0.0 is still available in case I will have troubles with SCC scans when LogDNA is not deployed.

I think the effects of the Cloud Logs issue are more severe than just a failed deployment that can be retried - last time my Cloud Log instance got stuck in "provisioning" status for more than a day and caused the terraform resource in the state to be in a "deposed" status which prevented a normal redeployment.

ocofaigh commented 1 month ago

/run pipeline

ocofaigh commented 1 month ago

Need to force merge this PR - we can't get the test wrapper to pass due to know issues with projects reporting the incorrect state for a period of time. Validation will occur in catalog anyway.

terraform-ibm-modules-ops commented 1 month ago

:tada: This PR is included in version 2.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: