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

TSPS-174 renaming non cosmetic things from tsps to teaspoons #93

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jsotobroad
Copy link
Collaborator

@jsotobroad jsotobroad commented Jun 17, 2024

Description

We decided to rename out internal short name from tsps to teaspoons. This is making the changes in our repo first so we know what downstream things we should look into changing and try to merge the changes in logical order

working workflow with the consolidated db changesets - https://bvdp-saturn-dev.appspot.com/#workspaces/teaspoons-imputation-dev/teaspoons_imputation_dev_control_workspace_20240726/job_history/89bce976-a937-4829-bbe7-ad7d4e5dece8

Jira Ticket

https://broadworkbench.atlassian.net/browse/TSPS-174

@@ -138,8 +138,8 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: failure
channel: "#terra-tsps-alerts"
username: "TSPS push to main branch"
channel: "#terra-teaspoons-alerts"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

how hard is it to change slack channel names?

Copy link
Collaborator

Choose a reason for hiding this comment

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

not hard!

@@ -82,7 +82,7 @@ SonarQube and want to debug the problem locally, you need to get the sonar token
before running the gradle task.

```shell
export SONAR_TOKEN=$(vault read -field=sonar_token secret/secops/ci/sonarcloud/tsps)
export SONAR_TOKEN=$(vault read -field=sonar_token secret/secops/ci/sonarcloud/teaspoons)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

do we want to change our vault path?

Copy link
Collaborator

Choose a reason for hiding this comment

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

good question for @choover-broad

README.md Outdated

For more information about deployment to dev, check out DevOps' [excellent documentation](https://docs.google.com/document/d/1lkUkN2KOpHKWufaqw_RIE7EN3vN4G2xMnYBU83gi8VA/).

### Tracing

We use [OpenTelemetry](https://opentelemetry.io/) for tracing, so that every request has a tracing span that can
be viewed in [Google Cloud Trace](https://cloud.google.com/trace). (This is not yet fully set up here - to be done in TSPS-107).
be viewed in [Google Cloud Trace](https://cloud.google.com/trace). (This is not yet fully set up here - to be done in Teaspoons-107).
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

can we change the shortname of our jira board/tickets easily and what do we rename it to if it is?

@@ -9,7 +9,7 @@ env:
pass: ${DATABASE_USER_PASSWORD:dbpwd}
user: ${DATABASE_USER:dbuser}
stairway:
name: ${STAIRWAY_DATABASE_NAME:tsps_stairway_db}
name: ${STAIRWAY_DATABASE_NAME:teaspoons_stairway_db}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

def need to make sure these database values are changed upstream

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah i wonder what the process will be for updating BEEs

@@ -138,8 +138,8 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: failure
channel: "#terra-tsps-alerts"
username: "TSPS push to main branch"
channel: "#terra-teaspoons-alerts"
Copy link
Collaborator

Choose a reason for hiding this comment

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

not hard!

@@ -82,7 +82,7 @@ SonarQube and want to debug the problem locally, you need to get the sonar token
before running the gradle task.

```shell
export SONAR_TOKEN=$(vault read -field=sonar_token secret/secops/ci/sonarcloud/tsps)
export SONAR_TOKEN=$(vault read -field=sonar_token secret/secops/ci/sonarcloud/teaspoons)
Copy link
Collaborator

Choose a reason for hiding this comment

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

good question for @choover-broad

README.md Outdated

For more information about deployment to dev, check out DevOps' [excellent documentation](https://docs.google.com/document/d/1lkUkN2KOpHKWufaqw_RIE7EN3vN4G2xMnYBU83gi8VA/).

### Tracing

We use [OpenTelemetry](https://opentelemetry.io/) for tracing, so that every request has a tracing span that can
be viewed in [Google Cloud Trace](https://cloud.google.com/trace). (This is not yet fully set up here - to be done in TSPS-107).
be viewed in [Google Cloud Trace](https://cloud.google.com/trace). (This is not yet fully set up here - to be done in TEASPOONS-107).
Copy link
Collaborator

Choose a reason for hiding this comment

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

did we decide on a new Jira handle yet?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i dont think we have. I thougth i put a comment about that somewhere but i dont see it =/

@@ -26,7 +26,7 @@
"bio.terra.common.retry.transaction",
// Stairway initialization and status
"bio.terra.common.stairway",
// Scan all TSPS service packages
// Scan all Teaspoons service packages
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we change the whole "pipelines" package to "teaspoons"? (referenced in the next line)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i actually like pipelines. Similar to like workspace manager, their package name is workspace

@@ -43,11 +43,11 @@ public MethodListResponse getAllMethods(String cbasBaseUri, String accessToken)
* .methodDescription("method description") //
* .methodSource(PostMethodRequest.MethodSourceEnum.GITHUB) // .methodUrl(pipeline.getWdlUrl()) //
* .methodVersion("1.0"); // logger.info( // "this is creating a new method in cbas: {}", //
* cbasService.createMethod( // cbasUri, samService.getTspsServiceAccountToken(),
* cbasService.createMethod( // cbasUri, samService.getTeasponnsServiceAccountToken(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo (though I kinda love "teasponns" 😂 )

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

its so hard to spell it sometimes!!!

try {
GoogleCredentials creds =
GoogleCredentials.getApplicationDefault().createScoped(SAM_OAUTH_SCOPES);
creds.refreshIfExpired();
return creds.getAccessToken().getTokenValue();
} catch (IOException e) {
throw new InternalServerErrorException(
"Internal server error retrieving TSPS credentials", e);
"Internal server error retrieving Teaspoons credentials", e);
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this message get returned to the user? do we want a different user-facing name?

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 thats a good point, should we say Terra Scientific Pipeline Services instead?

@@ -155,7 +155,8 @@ public <T> JobResultOrException<T> retrieveJobResult(

switch (flightState.getFlightStatus()) {
case FATAL:
logAlert("TSPS Stairway flight {} encountered dismal failure", flightState.getFlightId());
logAlert(
"Teaspoons Stairway flight {} encountered dismal failure", flightState.getFlightId());
Copy link
Collaborator

Choose a reason for hiding this comment

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

we probably don't need to include "teaspoons" in these log messages at all...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed

@@ -9,7 +9,7 @@ env:
pass: ${DATABASE_USER_PASSWORD:dbpwd}
user: ${DATABASE_USER:dbuser}
stairway:
name: ${STAIRWAY_DATABASE_NAME:tsps_stairway_db}
name: ${STAIRWAY_DATABASE_NAME:teaspoons_stairway_db}
Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah i wonder what the process will be for updating BEEs

@jsotobroad jsotobroad force-pushed the js_TSPS-174 branch 4 times, most recently from f675487 to e1813d1 Compare June 26, 2024 20:09
Copy link

sonarcloud bot commented Jun 26, 2024

@jsotobroad jsotobroad changed the title TSPS-174 first pass at renaming things from tsps to teaspoons TSPS-174 renaming non cosmetic things from tsps to teaspoons Jun 26, 2024
value: imputation
- column:
name: wdl_url
value: https://github.com/broadinstitute/warp/blob/TSPS-183_mma_beagle_imputation_hg38/pipelines/broad/arrays/imputation_beagle/ImputationBeagle.wdl
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wasnt sure if this was correct but i think this is the latest value we have

Copy link

sonarcloud bot commented Nov 7, 2024

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