dead-hosts / dev-center

This is the place where non-organisation members can ask questions about the organisation workflow or simply, inclusion requests.
MIT License
5 stars 0 forks source link

Running action failed #23

Closed bigdargon closed 2 years ago

bigdargon commented 2 years ago

After the Action configuration was updated in the template, I tried creating a new repo with my account https://github.com/bigdargon/hostsVN-dead-hosts. When changing the info file, the Action works normally (Link), but then it fails (Link).

Log

Fatal Error: substring not found
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/PyFunceble/cli/system/launcher.py", line 990, in start
    self.stop_and_wait_for_all_manager()
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/PyFunceble/cli/system/launcher.py", line 927, in stop_and_wait_for_all_manager
    self.tester_process_manager.wait()
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/PyFunceble/cli/processes/base.py", line 330, in wait
    raise worker_error
ValueError: substring not found

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.1/x64/bin/dead-hosts-launcher", line 8, in <module>
    sys.exit(tool())
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/dead_hosts/launcher/cli.py", line 106, in tool
    Orchestration(end=arguments.end, save=arguments.save)
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/dead_hosts/launcher/orchestration.py", line 118, in __init__
    self.run_test()
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/dead_hosts/launcher/orchestration.py", line 217, in run_test
    Command(f"PyFunceble -f {self.origin_file.path}").run_to_stdout()
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/PyFunceble/helpers/command.py", line 246, in run_to_stdout
    for line in self.run(rstrip=False):
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/dead_hosts/launcher/command.py", line 76, in run
    raise RuntimeError(
RuntimeError: Something went wrong.

Error: Process completed with exit code 1.

So what do I do to fix it? Or have I configured something wrong somewhere? Please help me! Thank you!

funilrys commented 2 years ago

Hi @bigdargon, sorry for the waiting time. Do you have the following secrets declared:

GIT_NAME: "${{ secrets.GIT_BOT_NAME }}"
GIT_EMAIL: "${{ secrets.GIT_BOT_EMAIL }}"
GITHUB_TOKEN: "${{ secrets.BOT_REPO_PAT }}"
funilrys commented 2 years ago

@dead-hosts, they are declared globally at the organization level. You should be able to declare them at repository level too.

bigdargon commented 2 years ago

@funilrys Thank you for your reply! I have declared my secrets here

Screenshot 2022-03-12 211551

Personal access tokens I have set the permissions as follows

Screenshot 2022-03-12 211942

funilrys commented 2 years ago

Delete the content of .pyfunceble/*** and create a new file called .pyfunceble/.gitkeep... Let's see how it goes ...

funilrys commented 2 years ago

By the way, if you don't want or need the special features of the @dead-hosts infrastructure, you may inspire yourself from: https://github.com/PyFunceble/ci_test

It's running every few hours and it's working 😉

funilrys commented 2 years ago

cc @bigdargon

bigdargon commented 2 years ago

Delete the content of .pyfunceble/*** and create a new file called .pyfunceble/.gitkeep... Let's see how it goes ...

@funilrys I did the above way, but still failed! https://github.com/bigdargon/hostsVN-dead-hosts/actions/runs/1975931308

vitpc.yadro.ru                                                                                       ACTIVE      DNSLOOKUP  Unknown           Unknown                        Unknown    AVAILABILITY 
Fatal Error: substring not found
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/PyFunceble/cli/system/launcher.py", line 990, in start
    self.stop_and_wait_for_all_manager()
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/PyFunceble/cli/system/launcher.py", line 927, in stop_and_wait_for_all_manager
    self.tester_process_manager.wait()
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/PyFunceble/cli/processes/base.py", line 330, in wait
    raise worker_error
ValueError: substring not found

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.1/x64/bin/dead-hosts-launcher", line 8, in <module>
    sys.exit(tool())
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/dead_hosts/launcher/cli.py", line 106, in tool
    Orchestration(end=arguments.end, save=arguments.save)
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/dead_hosts/launcher/orchestration.py", line 118, in __init__
    self.run_test()
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/dead_hosts/launcher/orchestration.py", line 217, in run_test
    Command(f"PyFunceble -f {self.origin_file.path}").run_to_stdout()
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/PyFunceble/helpers/command.py", line 246, in run_to_stdout
    for line in self.run(rstrip=False):
  File "/opt/hostedtoolcache/Python/3.9.1/x64/lib/python3.9/site-packages/dead_hosts/launcher/command.py", line 76, in run
    raise RuntimeError(
RuntimeError: Something went wrong.

Error: Process completed with exit code 1.
funilrys commented 2 years ago

I'm experimenting through: https://github.com/funilrys/dead-hosts-outside-test . I'll come back to you with the solution - as soon as I have it.

funilrys commented 2 years ago

Well @bigdargon it seems to work out there.

funilrys commented 2 years ago

@bigdargon, you can see the change in the GIT history ... But here are the ONLY secret I added:

image

....

bigdargon commented 2 years ago

I'm experimenting through: https://github.com/funilrys/dead-hosts-outside-test . I'll come back to you with the solution - as soon as I have it.

Thanks you!

Well @bigdargon it seems to work out there.

I followed the repo! The first action when editing the info file works fine, i will try creating another repo to test!

bigdargon commented 2 years ago

@funilrys Looks like the Action still fails.

funilrys commented 2 years ago

@bigdargon yup saw that. funilrys/PyFunceble#297 is actually the issue that enlighten what's going on ... Sorry for the time to wait ... I have a lot to deal with right now ...

It should be fixed with the next version of the PyFunceble-dev package.