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

[TOAZ-283] [TOAZ-282] Update Cromwell helm params and move relay listener to terra-app-setup-chart #3036

Merged
merged 11 commits into from
Nov 30, 2022

Conversation

rtitle
Copy link
Collaborator

@rtitle rtitle commented Nov 22, 2022

https://broadworkbench.atlassian.net/browse/TOAZ-282
https://broadworkbench.atlassian.net/browse/TOAZ-283

Depends on:

A few changes:

  • Moves relaylistener deployment out of cromwell to the terra-app-setup-chart
  • Passes a few new cromwell helm parameters (WSM URL, workspace storage container id, etc)
  • Reads recent information from the LZ (postgres server, log analytics workspace) for use in the future

Unit tests pass, planning to test this on a BEE as well.


Have you read CONTRIBUTING.md lately? If not, do that first.

I, the developer opening this PR, do solemnly pinky swear that:

  • I've documented my API changes in Swagger

In all cases:

  • Get a thumbsworth of review and PO signoff if necessary
  • Verify all tests go green (you can re-run automation tests with a comment saying jenkins retest
  • Run the automation tests multiple times in parallel to weed out instability if applicable via a comment saying multi-test
  • Squash and merge; Delete your branch after this
  • Test this change deployed correctly and works on dev environment after deployment

@@ -699,54 +698,77 @@ final class LeoAppServiceInterp[F[_]: Parallel](config: AppServiceConfig,

// Step 2: call LZ for LZ resources
lzResourcesByPurpose <- wsmDao.listLandingZoneResourcesByType(landingZoneId, userToken)
groupedLzResources = lzResourcesByPurpose.foldMap(a =>
Copy link
Collaborator Author

@rtitle rtitle Nov 22, 2022

Choose a reason for hiding this comment

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

It was bugging me that we were iterating through the full list of LZ resources each time we looked up a resource, so I grouped it to a Map[(purpose, type), resource] first.

.run(authContext)
_ <- assignVmScaleSet(params.landingZoneResources.clusterName, params.cloudContext, petMi)

// Deploy app chart
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looking forward to when we have more app types on Azure (e.g. after we split out WDS).

I'm treating the storage container as optional, and only required for Cromwell app at the moment.

@rtitle
Copy link
Collaborator Author

rtitle commented Nov 22, 2022

fiab-start failed, jenkins retest

@codecov
Copy link

codecov bot commented Nov 22, 2022

Codecov Report

Merging #3036 (af4a09f) into develop (7d4ecba) will decrease coverage by 0.07%.
The diff coverage is 74.11%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3036      +/-   ##
===========================================
- Coverage    72.95%   72.88%   -0.08%     
===========================================
  Files          125      125              
  Lines        11507    11580      +73     
  Branches       736      716      -20     
===========================================
+ Hits          8395     8440      +45     
- Misses        3112     3140      +28     
Impacted Files Coverage Δ
...nstitute/dsde/workbench/leonardo/azureModels.scala 0.00% <ø> (ø)
...dinstitute/dsde/workbench/leonardo/http/Boot.scala 0.00% <ø> (ø)
.../leonardo/monitor/LeoPubsubMessageSubscriber.scala 66.75% <0.00%> (-2.45%) ⬇️
...e/workbench/leonardo/util/AzurePubsubHandler.scala 83.33% <66.66%> (ø)
...dinstitute/dsde/workbench/leonardo/JsonCodec.scala 76.07% <80.00%> (-0.04%) ⬇️
.../dsde/workbench/leonardo/util/AKSInterpreter.scala 83.56% <92.85%> (+1.33%) ⬆️
...bench/leonardo/http/service/AppServiceInterp.scala 85.26% <100.00%> (+0.50%) ⬆️
...rdo/monitor/leoPubsubMessageSubscriberModels.scala 81.27% <100.00%> (+0.77%) ⬆️
...orkbench/leonardo/http/service/StatusService.scala 86.95% <0.00%> (-8.70%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d4ecba...af4a09f. Read the comment docs.

@rtitle rtitle force-pushed the rt-toaz-283 branch 2 times, most recently from 49917a4 to 241255e Compare November 29, 2022 13:22
@rtitle
Copy link
Collaborator Author

rtitle commented Nov 30, 2022

Tested in a BEE, this seems to work: broadinstitute/cromwhelm#128 (comment)

@rtitle
Copy link
Collaborator Author

rtitle commented Nov 30, 2022

jenkins retest

@@ -18,11 +18,18 @@ final case class WsmJobId(value: String) extends AnyVal
final case class ManagedIdentityName(value: String) extends AnyVal
final case class BatchAccountName(value: String) extends AnyVal

final case class PostgresName(value: String) extends AnyVal
final case class LogAnalyticsWorkspaceName(value: String) extends AnyVal

final case class LandingZoneResources(clusterName: AKSClusterName,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding a few more things to LandingZoneResources since I think we'll need them soon/later.

}

app-service {
# Defaults to true, but disabled for fiab runs
enable-custom-app-check = true
}

drs {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The DRS url is now used by Cromwell and Galaxy, so I made it a standalone thing.

Copy link
Collaborator

Choose a reason for hiding this comment

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

this will require firecloud-develop change? also cc @andy7i since he'll likely be updating this in firecloud-develop

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh yeah -- I can update fc-develop with the new config structure but keep the values the same.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Task(ctx.traceId, task, Some(handleKubernetesError), ctx.now, "createAppV2")
)
for {
landingZoneResources <- F.fromOption(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

landingZoneResources should be non-optional for Azure apps.


} yield ()

override def deleteApp(params: DeleteAKSAppParams)(implicit ev: Ask[F, AppContext]): F[Unit] = {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Simply moved this method to be next to createApp

}

app-service {
# Defaults to true, but disabled for fiab runs
enable-custom-app-check = true
}

drs {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this will require firecloud-develop change? also cc @andy7i since he'll likely be updating this in firecloud-develop

@rtitle
Copy link
Collaborator Author

rtitle commented Nov 30, 2022

Tests passed! I'm going to merge this to get it in

@rtitle rtitle merged commit abb0c7e into develop Nov 30, 2022
@rtitle rtitle deleted the rt-toaz-283 branch November 30, 2022 22:11
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.

2 participants