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

Github Checks Interface Setup #2217

Closed
wants to merge 166 commits into from
Closed

Github Checks Interface Setup #2217

wants to merge 166 commits into from

Conversation

Aayyush
Copy link
Contributor

@Aayyush Aayyush commented Apr 22, 2022

In this PR, we add support for using github checks in the plan, apply and policy check workflows. In order to minimize changes to the generic client interface, we delegate the github client's UpdateStatus() method to PullStatusCheckUpdater (updates the status checks in the Pull Request) and GithubStatusCheckUpdater (updates the github status checks)
In addition, we add a new implementation of CommitStatusUpdater that is configured to use the Github Status Checks to update project status instead of the default one - pull request status checks.

TODO:

  • Add tests
  • Implement GithubCheckStatusUpdater.UpdateStatus()

Relates to #936

Nish Krishnan and others added 30 commits September 27, 2021 14:29
Add fmt and lint checks.
* [ORCA-393] Add basic stats.

* Fmt.
To allow for parallel plans per project we will clone the repository per
project. Another optimisation we can perform is to copy the default
repository that is cloned regardless of the execution type. Default
workspace is required to be cloned to setup the project configs.
* Remove mod=vendor from action.
* Update workflow to use latest testing env.
* Adding CommandLocker to boltDB and exposing it through locker interface

* Apply lock ui and apply command lock controller

* Minor comments

* Adding more tests and refactorinng

* Linting fixes

* creating applyLockingClient variable to fix interface error

* nullsink for stats

* Addressing PR comments

* fixing e2e tests

* linting fix fml

* Update outdated function descriptions

Address PR comments

* revert stats sink changes
* Add pull closed metrics.

* Fix image.
* Remove all unnecessary actions.

* Fix test env.
* Current progress

* Websocket implementation

* Fixing routes

* Adding url

* Fixed websocket connection

* Progress 7/9

* UI Fixes

* Fixed test

* Fixing failed tests

* Update server/controllers/templates/web_templates.go

Co-authored-by: Sarvar Muminov <[email protected]>

* Update server/events/models/models.go

Co-authored-by: Sarvar Muminov <[email protected]>

Co-authored-by: Isata Sankoh <[email protected]>
Co-authored-by: Isata Sankoh <[email protected]>
* Current progress

* Websocket implementation

* Fixing routes

* Adding url

* Fixed websocket connection

* Progress 7/9

* Added some channel logic

* Changes to models.go

* Working on log streaming for plan

* Beginning tests/Having errors

* Log Streaming Logic

* fixed test

* Added Testing

* Fixed websocket connection

* Async implementation and test error fixes

* Changes to variables in tests

* Debugging

* Fixed UI in webpage terminal

* Fixing Run make-test coverage

* Fixing tests

* Testing

* Deleted txt.act files

* Fixing broken tests

* Changes to terraform_client testing

* Fixed tests in terraform_client_internal_test.go

* Fixed failing test

* Deleted lines causing test to fail

* Reformating

* More Reformatting

* Run make check-lint corrections

* Added error check

* Fixing check-lint test

* Suggested changes prior to merge

Co-authored-by: Isata Sankoh <[email protected]>
nishkrishnan and others added 10 commits April 12, 2022 09:59
* Thread ctx through to the command runner.

* Pass in logger to asyncautoplanner.
* remove TFE flags

* Remove `Flag` from EnablePolicyChecks

* remove skip-no-clone-changes flag

* remove disable-repo-locking flag

also addressed e2e tests

* removed deprecated flags

flags are --require-approval, --require-megreable and other apply
requirements flags that should be defined in the server side repo config

* Remove GlobalCfgArgs

* remove DeleteSourceBranchOnMerge flag

* remove --enable-policy-checks flag

Instead of using the flag, config will dynamically enable policy checks
when it detects policy sets in the server config
@Aayyush Aayyush requested a review from a team as a code owner April 22, 2022 17:02
@jamengual jamengual added the waiting-on-review Waiting for a review from a maintainer label May 13, 2022
@jamengual
Copy link
Contributor

please fix the conflicts @Aayyush

@jamengual
Copy link
Contributor

Closing as not planed

@jamengual jamengual closed this Oct 11, 2022
@nitrocode
Copy link
Member

This looks related to #936

@nitrocode
Copy link
Member

@Aayyush if you can please fix the conflicts, we'd appreciate it.

@nitrocode nitrocode marked this pull request as draft December 5, 2022 03:20
@nitrocode nitrocode added waiting-on-response Waiting for a response from the user and removed waiting-on-review Waiting for a review from a maintainer labels Dec 5, 2022
@nitrocode nitrocode added unmaintained Looking for community to build upon help wanted Good feature for contributors labels Dec 19, 2022
@jamengual
Copy link
Contributor

If anyone is interested in this work can open a new PR based on the lyft fork where this feature was added but the lyft fork has deviated too much from the original atlantis repo.

closing

@jamengual jamengual closed this Dec 23, 2022
@mikecutalo mikecutalo deleted the gh-checks branch June 8, 2023 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Good feature for contributors unmaintained Looking for community to build upon waiting-on-response Waiting for a response from the user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants