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

test: automated connector publication #309

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e3c5f91
[WIP] add new connector flow
codingkarthik Sep 24, 2024
8749c4f
Intialize all the clients while starting up the program
codingkarthik Sep 24, 2024
1dfb06f
break out the ci.go file into smaller files
codingkarthik Sep 24, 2024
119ad2d
minor refactors
codingkarthik Sep 25, 2024
6d93319
Merge branch 'main' into kc/new-connector-publication-automation
codingkarthik Sep 25, 2024
e9f5113
collect all the inputs and execute a giant mutation request
codingkarthik Sep 25, 2024
e039084
minor no-op
codingkarthik Sep 25, 2024
b4f20e0
remove NewConnector type
codingkarthik Sep 25, 2024
3a78e59
add a basic readme
codingkarthik Sep 25, 2024
8642e30
minor change
codingkarthik Sep 25, 2024
24c3d1f
update github branch
codingkarthik Sep 25, 2024
e16cd74
use the correct gcp service account details
codingkarthik Sep 25, 2024
7dcc069
fix bug while making the mutation request
codingkarthik Sep 25, 2024
d4bc60e
make the code more testable and add unit tests
codingkarthik Sep 26, 2024
6a1544b
update the code to have separate mutations
codingkarthik Sep 26, 2024
1ac8a8a
fix more bugs
codingkarthik Sep 26, 2024
a810a20
comment out the tests that are not working
codingkarthik Sep 26, 2024
b098021
new connector first release with logo and readme
pranshi06 Sep 26, 2024
85ccbe1
update readme info
pranshi06 Sep 26, 2024
0f6e8b4
update logo - replace with elastic search one
pranshi06 Sep 26, 2024
c5620e8
add new version for the connector
pranshi06 Sep 26, 2024
f383446
add new connector without logo
pranshi06 Sep 26, 2024
75ff95b
add new connector without readme
pranshi06 Sep 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/registry-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request_target:
branches:
- main
- kc/new-connector-publication-automation
types: [opened, synchronize, reopened]
paths:
- registry/**
Expand Down
38 changes: 38 additions & 0 deletions registry-automation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Introduction

## Steps to runs

1. Consider the following `changed_files.json` file:
```json

{
"added_files": [
"registry/hasura/azure-cosmos/releases/v0.1.6/connector-packaging.json"
],
"modified_files": [
"registry/hasura/azure-cosmos/metadata.json"
],
"deleted_files": []
}
```

2. You will require the following environment variables:

1. GCP_BUCKET_NAME
2. CLOUDINARY_URL
3. GCP_SERVICE_ACCOUNT_KEY
4. CONNECTOR_REGISTRY_GQL_URL
5. CONNECTOR_PUBLICATION_KEY
6. GCP_SERVICE_ACCOUNT_DETAILS



```bash


2. Run the following command from the `registry-automation` directory:


```bash
go run main.go ci --changed-files-path changed_files.json
```
Loading
Loading