Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulating CI statuses #21

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

eduard-bagdasaryan
Copy link
Contributor

This helper tool emulates CIs which are used during Anubis testing.
The tool configuration (tests/config.json) describes status contexts
and states, which are to be posted onto GitHub after receiving an
event from it(pull_request, pull_request_review or push, as usual).

Implementation specifics: the emulator re-uses the bot code
(GitHub API wrappers, Logger etc.) which is tied up to the
configuration (Config.js), different for the bot and emulator.
In order to resolve these dependencies, I added a helper
mklink.sh script, which allows configuring the code for one
of two modes: bot(default) or emulator.

* Added a stub for Config.dryRun(), since GitHub api wrappers
  use this method but the emulator does not need 'dry run' for now.

* Push event sometimes does not have head_commit (e.g., on tag
  creation).
@rousskov rousskov requested review from rousskov and removed request for rousskov March 16, 2021 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant