Closed gbaraldi closed 1 year ago
fix #37 ?
@gbaraldi first, thank you for your pull request. Unfortunately, the CI run failed. From the output, it seems that the program doesn't output Pi anymore. Do you maybe know why?
+swift | --> RUN --no-cache ./scbench "./leibniz" -i $iterations -l "swift --version" --export json --lang "Swift"
+swift | speed-comparison benchmark (scbench) 1.0.0
+swift | ***********
+swift | Running iteration 1
+swift | ***********
+swift | ***********
+swift | Running iteration 2
+swift | ***********
+swift | ***********
+swift | Running iteration 3
+swift | ***********
+swift | Benchmarking Summary
+swift | --------------------
+swift | Started:
+swift | Started: 17-10-2022 07:01:33
+swift | Ended: 17-10-2022 07:01:33
+swift | Language: Swift
+swift | Version: 5.7
+swift | Executed Command: ./leibniz
+swift | Accuracy: NaN
+swift | Calculated Pi:
+swift | Total iterations: 3
+swift | Average time taken: 214.183556ms
+swift | Failed to export the results to json.
That's odd, it does run locally for me, on both macos and linux.
What if you keep print(pi)
as it was before?
That's odd, it does run locally for me, on both macos and linux.
Also, if you run it with earthly --config earthly-config.yml +swift
or do you just run the program?
https://stackoverflow.com/questions/57095407/swift-print-doesnt-appear-in-stdout-but-3rd-party-c-library-logs-do-when-runn this is what I'm suspicious of. I ran it at my terminal.
@gbaraldi I tried it out in Codespaces, and it seems to still fail.
This runs locally with earthly for me. My rounds.txt didn't have a new line :laughing:
Yes, now it seems to work. I'll let the CI run in full then.
Thank you very much for your contribution @gbaraldi :+1:
I'm not sure if this will work, but I thought the execution time was a bit odd. I'm really bad at swift 😄