It's very weired that my code passes all UT/IT in my laptop, but it encounters errors in github CI. Would you mind helping to take up some methods to debug in github CI? Or to make code runs in local as same as github?
I would sincerely appreciate it for anything you take up. Thank you!
The pull-request I am working on is in this page :https://github.com/apache/iotdb/pull/4437
It's a project about timeseries database, Apache-IoTDB. The error looks like a trivial logical error among ordinary code. Hope it may help diagnose the bug. Thank you very much !
CodePudding user response:
act is a local runner for GitHub Actions workflows and should run nearly identically to the real thing.
Alternatively, the debugging-with-ssh action uses upterm to open an SSH listener within a container to get a shell on a running workflow within GitHub Actions itself.
CodePudding user response:
The question solved directly by merging master(the branch my pull request forward to) again.
The point is, github CI (actions) may be running on the code which is AUTO-MERGED when the pull-request accepted.
So if your code passes all tests locally but failed in CI with different result from your local debugging, try merge the branch which PR forward may solve the problem.
Hope this may hepl you and thanks guys under this question.