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

Add unit test in Github action CI. #83

Merged
merged 3 commits into from
Jun 18, 2021
Merged

Add unit test in Github action CI. #83

merged 3 commits into from
Jun 18, 2021

Conversation

arijitAD
Copy link

No description provided.

@arijitAD arijitAD marked this pull request as draft June 10, 2021 15:44
@arijitAD arijitAD changed the title Add unit test in github action CI. WIP: Add unit test in github action CI. Jun 10, 2021
@arijitAD arijitAD linked an issue Jun 11, 2021 that may be closed by this pull request
@arijitAD arijitAD mentioned this pull request Jun 14, 2021
@arijitAD arijitAD force-pushed the fix-ci branch 25 times, most recently from 2ec7891 to f655684 Compare June 16, 2021 09:37
@arijitAD arijitAD force-pushed the fix-ci branch 16 times, most recently from 53b5d2c to 600329d Compare June 17, 2021 04:37
@arijitAD arijitAD changed the title WIP: Add unit test in github action CI. Add unit test in Github action CI. Jun 17, 2021
@arijitAD arijitAD marked this pull request as ready for review June 17, 2021 05:15

- name: Run unit tests
run:
PGPASSWORD=password make statedifftest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The password for test db is also in the Makefile. Why do we need it here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this into Makefile as env.

platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Create GOPATH
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first three steps here are the same as the earlier job. Can't we factor this out and run the tests in the same folder?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, We can but then the tests will run sequentially in one job.
Currently, we are running all the tests in parallel hence the setup steps need to be done for each individual test.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me explore this a bit. I think we can parallelize the job after the initial setup.

Copy link
Collaborator

@i-norden i-norden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@arijitAD arijitAD changed the base branch from v1.10.3-statediff-0.0.23 to v1.10.3-statediff June 18, 2021 14:43
@arijitAD arijitAD merged commit 300d43e into v1.10.3-statediff Jun 18, 2021
@ashwinphatak ashwinphatak deleted the fix-ci branch June 21, 2021 05:12
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.

Fix CI
3 participants