Skip to content

Commit d4b2be7

Browse files
committed
chore(ci): Add health-check
1 parent 3e90502 commit d4b2be7

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/main.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
SSL_VERIFY_MODE: certificate
1717
#
1818
ES_PORT: 9200
19-
ES_HOSTNAME: http://localhost:9200
19+
ES_HOSTNAME: https://127.0.0.1:9200
2020
ES_USERNAME: elastic
2121
ES_PASSWORD: worksfine
2222
ES_CERTIF: containers/esconfig/certs/http_ca.crt
@@ -81,9 +81,13 @@ jobs:
8181
run: |
8282
bash scripts/fetch_rxivx_data.sh medrxiv
8383
84-
- name: Count documents in MedRxiv index
85-
run: |
86-
makim develop.count-docs-in-index --index-name medrxiv
84+
# - name: Count documents in MedRxiv index
85+
# run: |
86+
# makim develop.count-docs-in-index --index-name medrxiv
87+
88+
- name: Setup tmate session
89+
if: "${{ failure() }}"
90+
uses: mxschmitt/action-tmate@v3
8791

8892
- name: Run tests
8993
run: makim tests.unittest

scripts/index_arxiv_to_es.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
f"/tmp/elasticrxivx_{index_name_placeholder}_{time.strftime('%Y%m%d-%H%M%S')}.log"
2323
)
2424

25-
ES_HOSTNAME = os.getenv("ES_HOSTNAME", "https://localhost:9200")
25+
ES_HOSTNAME = os.getenv("ES_HOSTNAME", "http://127.0.0.1:9200")
2626
ES_USERNAME = os.getenv("ES_USERNAME", "elastic")
2727
ES_PASSWORD = os.getenv("ES_PASSWORD", "")
2828
ES_CERTIF = os.getenv("ES_CERTIF", "")

0 commit comments

Comments
 (0)