Skip to content

Commit 9fd7df6

Browse files
Remove analytics tests
1 parent 7b6e8f1 commit 9fd7df6

File tree

1 file changed

+0
-57
lines changed

1 file changed

+0
-57
lines changed

.github/workflows/build-and-run-tests-from-branch.yml

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -8,63 +8,6 @@ env:
88
CADVISOR_VERSION: v0.36.0
99

1010
jobs:
11-
analytics:
12-
runs-on: ubuntu-20.04
13-
steps:
14-
- name: Show current GITHUB_RUN_ID and HOSTNAME
15-
run: |
16-
echo Find your Prometheus metrics using label {instance=\"${GITHUB_RUN_ID}-${HOSTNAME}\"}
17-
- name: Run service containers on the background
18-
run: |
19-
docker run -d --name node_exporter \
20-
--net="host" \
21-
--pid="host" \
22-
-v "/:/host:ro,rslave" \
23-
quay.io/prometheus/node-exporter:latest \
24-
--path.rootfs=/host
25-
docker run -d --name curl-node \
26-
--net="host" \
27-
--entrypoint=/bin/sh \
28-
curlimages/curl:7.84.0 \
29-
"-c" "while true; do curl localhost:9100/metrics | curl -u ${{ secrets.PUSHGATEWAY_USER }}:${{ secrets.PUSHGATEWAY_PASSWORD }} --data-binary @- https://${{ secrets.PUSHGATEWAY_HOSTNAME }}/pushgateway/metrics/job/pushgateway/instance/${GITHUB_RUN_ID}-${HOSTNAME}${{ env.PROM_ADDITIONAL_LABELS }} ; sleep 15; done"
30-
31-
- uses: actions/checkout@v2
32-
- uses: actions/setup-java@v2
33-
with:
34-
java-version: '11'
35-
distribution: 'zulu'
36-
java-package: jdk+fx
37-
38-
- uses: gradle/gradle-build-action@v2
39-
with:
40-
gradle-version: 7.4.2
41-
42-
- name: Run tests
43-
run: |
44-
chmod +x scripts/ps_parser.sh
45-
while true; do ./scripts/ps_parser.sh > /tmp/ps ; cat /tmp/ps | curl -u ${{ secrets.PUSHGATEWAY_USER }}:${{ secrets.PUSHGATEWAY_PASSWORD }} --data-binary @- https://${{ secrets.PUSHGATEWAY_HOSTNAME }}/pushgateway/metrics/job/pushgateway/instance/${GITHUB_RUN_ID}-${HOSTNAME}${{ env.PROM_ADDITIONAL_LABELS }} 2>/dev/null ; sleep 15; done &
46-
export KOTLIN_HOME="/usr"
47-
export GRADLE_OPTS="-XX:MaxHeapSize=2048m -Dorg.gradle.jvmargs='-XX:MaxHeapSize=2048m -XX:MaxPermSize=512m -Dorg.gradle.daemon=false' -Dorg.gradle.daemon=false"
48-
cd utbot-framework
49-
gradle build -x test
50-
cd ../utbot-analytics
51-
gradle build --no-daemon
52-
53-
- name: Upload logs
54-
if: ${{ always() }}
55-
uses: actions/upload-artifact@v2
56-
with:
57-
name: analytics_logs
58-
path: utbot-analytics/logs/*
59-
60-
- name: Upload test report if tests have failed
61-
if: ${{ failure() }}
62-
uses: actions/upload-artifact@v2
63-
with:
64-
name: analytics_tests_report
65-
path: utbot-analytics/build/reports/tests/test/*
66-
67-
6811
cli:
6912
runs-on: ubuntu-20.04
7013
steps:

0 commit comments

Comments
 (0)