Skip to content

Commit

Permalink
patch: - temp file ownership setting, testing only
Browse files Browse the repository at this point in the history
- check for failed flushed files
  • Loading branch information
brouillette committed Jun 17, 2023
1 parent e5f933e commit 153b7bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,27 @@ init-vendor:
init-data-dirs:
mkdir -p ${GOHAN_API_DRS_BRIDGE_HOST_DIR}
chown -R ${HOST_USER_UID}:${HOST_USER_GID} ${GOHAN_API_DRS_BRIDGE_HOST_DIR}
chmod -R 770 ${GOHAN_API_DRS_BRIDGE_HOST_DIR}
chmod -R 777 ${GOHAN_API_DRS_BRIDGE_HOST_DIR}

mkdir -p ${GOHAN_DRS_DATA_DIR}
chown -R ${HOST_USER_UID}:${HOST_USER_GID} ${GOHAN_DRS_DATA_DIR}
chmod -R 770 ${GOHAN_DRS_DATA_DIR}
chmod -R 777 ${GOHAN_DRS_DATA_DIR}

mkdir -p ${GOHAN_ES_DATA_DIR}
chown -R ${HOST_USER_UID}:${HOST_USER_GID} ${GOHAN_ES_DATA_DIR}
chmod -R 770 ${GOHAN_ES_DATA_DIR}
chmod -R 777 ${GOHAN_ES_DATA_DIR}

@# tmp:
@# (setup for when gohan needs to preprocess vcf's at ingestion time):
mkdir -p ${GOHAN_API_VCF_PATH}
mkdir -p ${GOHAN_API_VCF_PATH}/tmp
chown -R ${HOST_USER_UID}:${HOST_USER_GID} ${GOHAN_API_VCF_PATH}
chmod -R 770 ${GOHAN_API_VCF_PATH}/tmp
chmod -R 777 ${GOHAN_API_VCF_PATH}/tmp

mkdir -p ${GOHAN_API_GTF_PATH}
mkdir -p ${GOHAN_API_GTF_PATH}/tmp
chown -R ${HOST_USER_UID}:${HOST_USER_GID} ${GOHAN_API_GTF_PATH}
chmod -R 770 ${GOHAN_API_GTF_PATH}/tmp
chmod -R 777 ${GOHAN_API_GTF_PATH}/tmp

@echo ".. done!"

Expand Down
9 changes: 6 additions & 3 deletions src/api/tests/build/api/variants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,13 @@ func TestIngest(t *testing.T) {
if stats.NumAdded == stats.NumFlushed {
fmt.Println("Done, moving on..")
break
} else {
// pause
time.Sleep(3 * time.Second)
}
if stats.NumFailed > 0 {
log.Fatal("More than one variant failed to flush")
}

// pause
time.Sleep(3 * time.Second)
}

// todo: verify demo vcf was properly ingested
Expand Down

0 comments on commit 153b7bc

Please sign in to comment.