Skip to content

Add Github Action CI tests #889

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

Merged
merged 1 commit into from
Nov 17, 2020
Merged

Conversation

tuchfarber
Copy link
Contributor

@tuchfarber tuchfarber commented Nov 16, 2020

This is v1 to unblock credentials. Cleanup will happen later.

@tuchfarber tuchfarber force-pushed the tuchfarber/add_gha_ci_tests branch 3 times, most recently from d5f3992 to ea4959e Compare November 16, 2020 21:50
@tuchfarber tuchfarber force-pushed the tuchfarber/add_gha_ci_tests branch from ea4959e to 8e1bb56 Compare November 17, 2020 01:37
Comment on lines 9 to 10
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=credentials001
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=credentials
Copy link
Contributor Author

@tuchfarber tuchfarber Nov 17, 2020

Choose a reason for hiding this comment

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

This change brought to you by tightening the restrictions on databases starting with test_ in mysql 5.6.46. docker-library/mysql#476

@@ -13,7 +13,7 @@ services:
- DB_NAME=credentials
- DB_PASSWORD=password
- DB_PORT=3306
- DB_USER=credentials001
- DB_USER=root
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as below

@@ -64,7 +64,7 @@ class Meta:
uuid = factory.LazyFunction(uuid4)
title = FuzzyText(prefix="Test Program ")
type = FuzzyText()
type_slug = slugify(str(type))
type_slug = factory.LazyAttribute(lambda o: slugify(o.type))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This wasn't actually working before but mysql 5.6.X was handling the bad data fine.

Comment on lines -127 to +130
docker exec -e TOXENV=$(TOXENV) -it credentials bash -c 'source /edx/app/credentials/credentials_env && cd /edx/app/credentials/credentials/ && xvfb-run make tests'
docker exec -e TOXENV=$(TOXENV) -t credentials bash -c 'source /edx/app/credentials/credentials_env && cd /edx/app/credentials/credentials/ && xvfb-run make tests'

exec-accept: ## Run acceptance tests on a container
docker exec -it credentials bash -c 'source /edx/app/credentials/credentials_env && cd /edx/app/credentials/credentials/ && make accept'
docker exec -t credentials bash -c 'source /edx/app/credentials/credentials_env && cd /edx/app/credentials/credentials/ && make accept'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're not actually uses interactive mode and GHA fails when Travis didn't

@tuchfarber
Copy link
Contributor Author

Merging w/ comments to unblock team in the morning.

@tuchfarber tuchfarber merged commit 6911e5d into master Nov 17, 2020
@tuchfarber tuchfarber deleted the tuchfarber/add_gha_ci_tests branch November 17, 2020 01:55
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