Skip to content

Commit

Permalink
fix(performance): add sudo to systemctl restart in Earthfile
Browse files Browse the repository at this point in the history
Add sudo to the systemctl restart command to ensure proper
permissions are granted when restarting the ledger service
during performance tests.
  • Loading branch information
flemzord committed Oct 10, 2024
1 parent d1e25e4 commit 0e48c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/performance/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ IMPORT github.com/formancehq/earthly:tags/v0.16.2 AS core
ci:
LOCALLY
RUN cd ../../ && go build -o /tmp/ledger ./
RUN systemctl restart ledger
RUN sudo systemctl restart ledger

Check failure on line 8 in test/performance/Earthfile

View workflow job for this annotation

GitHub Actions / Benchmark

Error

The command RUN sudo systemctl restart ledger did not complete successfully. Exit code 1
RUN go test -bench="Write" -run ^$ -tags it -report.file ./report/report.json -timeout 60m -benchtime 10s --ledger.url=http://localhost:3068

run:
Expand Down

0 comments on commit 0e48c69

Please sign in to comment.