-
Notifications
You must be signed in to change notification settings - Fork 3
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 paas-app-charmer changes in discourse-gateway #330
Closed
Closed
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
f64f95b
Add tmate to see how this thing works
javierdelapuente 156fa3b
Use branch for paas-app-charmer in discourse-gatekeeper
javierdelapuente c7d7cd4
Let's try a matrix to see if this works
javierdelapuente 5873d57
matrix strategy for e2e conflicts
javierdelapuente cbaf67a
Put max-parallel in its correct place...
javierdelapuente 044ab96
Add tmate again to see what is there
javierdelapuente bf714c6
Let's see how it fails
javierdelapuente 60aaa28
create charmcraft.yaml in bash
javierdelapuente 9359e34
logging
javierdelapuente 3e4008c
learning shell scripting in github
javierdelapuente c6a0357
Fix broken doc link
javierdelapuente 9033c6a
tmate where it is failing
javierdelapuente d3672e6
print initial branch
javierdelapuente bbb9bbd
remote metadata.yaml
javierdelapuente c1856c8
commit charmcraft.yaml
javierdelapuente e07a53d
Update all gatekeeper code.
javierdelapuente 40e8054
So all runs and we see if I broke something...
javierdelapuente c0e6dcf
new argument charm-dir for tests/e2e/migrate.py
javierdelapuente 6be83db
Use as e2e setup paas-app-charmer branch
javierdelapuente 7df61ba
Pass charm_dir directory
javierdelapuente e21408c
Add charm_dir to migrate.py
javierdelapuente 11ae2cd
Let's see if this gets the file...
javierdelapuente 5f1096c
run more tests to see if they work...
javierdelapuente 7eb342b
Let's see how far we get
javierdelapuente 12b30ae
Only create if it does not exists
javierdelapuente 80e7762
Fix linting
javierdelapuente ac0e77a
changa metadata.yaml instead of charmcraft.yaml
javierdelapuente 063a95d
Add missing charm_dir parameters
javierdelapuente b1c7545
git rm instead of just rm to delete previous metadata.yaml
javierdelapuente 3d2e53e
Do not print all commands to terminal
javierdelapuente 42bae01
Remeve unneeded commands and reword comments
javierdelapuente File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm hesitant to add complexity like this to the e2e tests, especially since we have to write them in bash and that when it is the
charm
case we also actually change from metadata to charmcraft. 2 options i can think of:I would also run this in
reconclide
rather thanconflict
since we're not really testing a conflict.Probably we can go with adding another job to reconcile which has 1 documentation file inside a directory and making use of charmcraft rather than metadata and just run the create action on that and leave it at that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with either, but if we go with 1) I would put this in the conflict tests. End2End tests test a number of things and integrations beside conflicts, so that should be totally fine. The reason why I would not put this in the
reconcile
is that reconcile is the test where we do update production Discourse (to make sure the integration works correctly) which we don't run in scheduled fashion to avoid cluttering Discourse too much. Anything we put there is somewhat less checked.So by default, we should place more things on pulling tests (such as the conflict ones) that we run often and don't clutter Discourse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, perhaps we can rename this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm happy with this, I also find it somewhat confusing. We could just go for "Pulling Test" and "Pushing Test". If we will start splitting tests further we could revisit this