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

Triggering github Actions on self hosted runner #1

Open
wants to merge 30 commits into
base: Sanity-Testing
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
41179be
Initial commit
Vipinofficial11 Mar 24, 2023
5ef205f
Initial commit - 2
Vipinofficial11 Mar 24, 2023
34dc21b
Initial commit - 4
Vipinofficial11 Mar 24, 2023
cd442c4
Initial commit - 5
Vipinofficial11 Mar 24, 2023
b2e54eb
Secret manager access changed
Vipinofficial11 Mar 24, 2023
78b7ef8
Secret manager access changed
Vipinofficial11 Mar 24, 2023
8ad634e
Secret manager access changed
Vipinofficial11 Mar 24, 2023
5a760fe
Secret manager access changed
Vipinofficial11 Mar 24, 2023
4f6664a
Secret manager access changed
Vipinofficial11 Mar 26, 2023
3e4e14a
Secret manager access changed
Vipinofficial11 Mar 26, 2023
b2ea14a
Trigger
Vipinofficial11 Mar 27, 2023
74ead0f
Trigger - 2
Vipinofficial11 Mar 27, 2023
9394299
Trigger - 3
Vipinofficial11 Mar 27, 2023
fb10b87
Trigger - 3
Vipinofficial11 Mar 27, 2023
4984516
Trigger - 3
Vipinofficial11 Mar 28, 2023
c6c2a4b
fix maven issue
Vipinofficial11 Mar 28, 2023
43ec63e
fix maven issue
Vipinofficial11 Mar 28, 2023
dd259ba
fix maven issue
Vipinofficial11 Mar 29, 2023
f0f7c37
turning cache off
Vipinofficial11 Mar 29, 2023
465e9d8
turning cache off
Vipinofficial11 Mar 29, 2023
73d5bdd
turning cache off
Vipinofficial11 Mar 29, 2023
6af2876
turning cache off
Vipinofficial11 Mar 31, 2023
8fef1c9
turning cache on
Vipinofficial11 Apr 4, 2023
5206c71
turning cache on
Vipinofficial11 Apr 4, 2023
35605a0
turning cache on
Vipinofficial11 Apr 4, 2023
ad5c858
update guava
Vipinofficial11 Apr 4, 2023
ae4895f
remove extra dependencies
Vipinofficial11 Apr 4, 2023
3e58948
remove extra dependencies
Vipinofficial11 Apr 4, 2023
ee2c05c
remove extra dependencies
Vipinofficial11 Apr 4, 2023
a14f114
Activating the service
Vipinofficial11 Apr 4, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:

jobs:
build:
runs-on: k8s-runner-build
runs-on: self-hosted

if: ${{ github.event.workflow_run.conclusion != 'skipped' }}

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:

jobs:
build:
runs-on: k8s-runner-e2e
runs-on: self-hosted

if: ${{ github.event.workflow_run.conclusion != 'skipped' }}

Expand Down Expand Up @@ -53,13 +53,13 @@ jobs:
uses: 'google-github-actions/get-secretmanager-secrets@v0'
with:
secrets: |-
SALESFORCE_MARKETING_CLIENT_ID:cdapio-github-builds/SALESFORCE_MARKETING_CLIENT_ID
SALESFORCE_MARKETING_CLIENT_SECRET:cdapio-github-builds/SALESFORCE_MARKETING_CLIENT_SECRET
SALESFORCE_MARKETING_BASE_URI:cdapio-github-builds/SALESFORCE_MARKETING_BASE_URI
SALESFORCE_MARKETING_SOAP_API_ENDPOINT:cdapio-github-builds/SALESFORCE_MARKETING_SOAP_API_ENDPOINT
SALESFORCE_MARKETING_REST_API_ENDPOINT:cdapio-github-builds/SALESFORCE_MARKETING_REST_API_ENDPOINT
PROJECT_ID:cdapio-github-builds/PROJECT_ID
SALESFORCE_MARKETING_DATASET:cdapio-github-builds/SALESFORCE_MARKETING_DATASET
SALESFORCE_MARKETING_CLIENT_ID:cdf-athena/SALESFORCE_MARKETING_CLIENT_ID
SALESFORCE_MARKETING_CLIENT_SECRET:cdf-athena/SALESFORCE_MARKETING_CLIENT_SECRET
SALESFORCE_MARKETING_BASE_URI:cdf-athena/SALESFORCE_MARKETING_BASE_URI
SALESFORCE_MARKETING_SOAP_API_ENDPOINT:cdf-athena/SALESFORCE_MARKETING_SOAP_API_ENDPOINT
SALESFORCE_MARKETING_REST_API_ENDPOINT:cdf-athena/SALESFORCE_MARKETING_REST_API_ENDPOINT
PROJECT_ID:cdf-athena/PROJECT_ID
SALESFORCE_MARKETING_DATASET:cdf-athena/SALESFORCE_MARKETING_DATASET

- name: Run tests
run: python3 e2e/src/main/scripts/run_e2e_test.py
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ name: Trigger build

on:
push:
branches: [ develop, release/** ]
branches: [ Sanity-Testing ]
pull_request:
branches: [ develop, release/** ]
branches: [ Sanity-Testing ]
types: [ opened, synchronize, reopened, labeled ]
workflow_dispatch:

jobs:
trigger:
runs-on: k8s-runner-e2e
runs-on: self-hosted

# We allow builds:
# 1) When triggered manually
Expand Down
13 changes: 6 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,6 @@
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.0.1-jre</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
Expand All @@ -683,9 +677,14 @@
<dependency>
<groupId>io.cdap.tests.e2e</groupId>
<artifactId>cdap-e2e-framework</artifactId>
<version>0.1.0-SNAPSHOT</version>
<version>0.2.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.1-jre</version>
</dependency>
</dependencies>
</profile>
</profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static void verifyIfRecordCreatedInSinkForMultipleObjectsAreCorrect(Strin
expectedOutput.add(line);
}
}

// Testing this branch on github Actions.test Vm as service.
List<String> bigQueryDatasetTables = new ArrayList<>();
TableResult tablesSchema = getTableNamesFromDataSet(dataset);
tablesSchema.iterateAll().forEach(value -> bigQueryDatasetTables.add(value.get(0).getValue().toString()));
Expand Down