lab132 / buildbot-gitea

Buildbot plugin for integration with gitea.
MIT License
62 stars 21 forks source link

WIP: fix no change on pushing tags #37

Closed tadeas-vintrlik closed 11 months ago

tadeas-vintrlik commented 1 year ago

fixes: https://github.com/lab132/buildbot-gitea/issues/36

I tried it on our staging setup, it works as expected now.

I tried to run the tests in the repository, most of them (8) however have failed. I installed both the requirements.txt and the testrequirements.txt.

I ran the test as following: python3 setup.py test

The errors are related to imports:

ImportError: cannot import name 'TestReactorMixin' from 'buildbot.test.util.misc'
ImportError: Failed to import test module: buildbot_gitea.test.test_auth
ImportError: Failed to import test module: buildbot_gitea.test.test_reporter
ImportError: Failed to import test module: buildbot_gitea.test.test_step_source
ImportError: Failed to import test module: buildbot_gitea.test.test_webhook
ImportError: Failed to import test module: test_auth
ImportError: Failed to import test module: test_reporter
ImportError: Failed to import test module: test_step_source
ImportError: Failed to import test module: test_webhook
ModuleNotFoundError: No module named 'buildbot.test.fake.remotecommand'
ModuleNotFoundError: No module named 'mock'

Am I missing something?

pampersrocker commented 1 year ago

The tests sadly have not been updated to the newest buildbot test scheme. Only difference to your command is to use trial buildbot_gitea.test but this leads to mostly the same errors. I did not have the time yet to update the tests.