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

E2E GH Action - patch/modifying #353

Merged

Conversation

elreydetoda
Copy link
Collaborator

So, I think there was an issue with this action: https://github.com/jakejarvis/hugo-build-action

Because the prod deployment works and after I swapped over to use the same docker image as the prod deployment everything worked fine. (from the hugo building perspective)

After that I adapted the action to properly use the pipenv (Pipfile + .lock) instead of the requirements.txt.

Next the tests were actually working and failing as expected! 😂 It was failing because the JB live link wasn't as expected from the tests, and because #317 was merged before #325 was merged (and #325 wasn't rebase'd on main) the tests were expecting the old URL. So I updated the reference to point to /live instead, and everything works now 😁 https://github.com/elreydetoda/jupiterbroadcasting.com/runs/8080987260?check_suite_focus=true

@gerbrent
Copy link
Collaborator

great 🔍 investigative work @elreydetoda ! I could tell it was working as expected - i.e. the E2E tests were finding a problem as configured, but didn't know how to inspect.... hope someone teaches me that at some point ; )

@elreydetoda
Copy link
Collaborator Author

great mag investigative work @elreydetoda ! I could tell it was working as expected - i.e. the E2E tests were finding a problem as configured, but didn't know how to inspect.... hope someone teaches me that at some point ; )

From a high level, this was pretty much my process:

  1. I identified an error because of the error starting here: https://github.com/elreydetoda/jupiterbroadcasting.com/runs/8080911236?check_suite_focus=true#step:9:48
  2. Then the line below it here says the actual value: https://github.com/elreydetoda/jupiterbroadcasting.com/runs/8080911236?check_suite_focus=true#step:9:49
  3. So, I knew that the comparison of expected vs actual was not right.
  4. You can see the expected dropdowns passed in here: https://github.com/elreydetoda/jupiterbroadcasting.com/runs/8080911236?check_suite_focus=true#step:9:29, and can see where it's got the jb-live.jb.net domain.
  5. I went into conftest.py file, which is used to be a central location for passing in commonly shared value (i.e. all the dropdowns we're expecting, because that might be used by multiple tests), and changed it from the jb-live.jb.net to /live: https://github.com/JupiterBroadcasting/jupiterbroadcasting.com/pull/353/files#diff-7dae78a00d8d69422a3bfbde96c7c5d794eede504a0df763853896a1ba1b5ff2R59

@gerbrent
Copy link
Collaborator

gerbrent commented Sep 1, 2022

I don't understand the implications of pipenv enough (though aware we've implemented it elsewhere recently) so asking for reviewers:

@elreydetoda
Copy link
Collaborator Author

I don't understand the implications of pipenv enough (though aware we've implemented it elsewhere recently) so asking for reviewers:

Definitely feel free to still wait for the reviews, but just for some extra info this is what I mentioned to @kbondarev for why we should use pipenv: JupiterBroadcasting/show-scraper#11

@elreydetoda
Copy link
Collaborator Author

Converted to draft, because of weird bug that came up with the E2E tests: #383 (comment)

Going to redo how the E2E GH action works to hopefully make more consistent and have less quirks...

@elreydetoda elreydetoda force-pushed the patch/modifying_e2e_GH_action branch from 0154fb3 to db52c27 Compare September 3, 2022 02:24
@gerbrent
Copy link
Collaborator

gerbrent commented Sep 3, 2022

....did we find you in a rabbit hole?? ; )

@@ -0,0 +1,64 @@
name: Building Prod Container
Copy link
Collaborator

Choose a reason for hiding this comment

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

@elreydetoda
Copy link
Collaborator Author

....did we find you in a rabbit hole?? ; )

That's so funny you said those word! Look at what the title of my blog is: https://elrey.casa/blog (it's "The Rabbit Hole") 🤣

@gerbrent gerbrent mentioned this pull request Sep 5, 2022
@gerbrent gerbrent linked an issue Sep 5, 2022 that may be closed by this pull request
@elreydetoda elreydetoda force-pushed the patch/modifying_e2e_GH_action branch 2 times, most recently from e486111 to e493703 Compare September 6, 2022 04:16
@elreydetoda elreydetoda marked this pull request as ready for review September 6, 2022 04:45
@elreydetoda
Copy link
Collaborator Author

alright... I think I've finally gotten it 🙃

Going to make a longer comment to explain things, but this will be what the final report will look like after merging: https://github.com/elreydetoda/jupiterbroadcasting.com/runs/8199597176

@elreydetoda elreydetoda marked this pull request as draft September 6, 2022 04:56
@elreydetoda
Copy link
Collaborator Author

putting back to draft till I have time to finish documenting things and make my long comment (almost ready 😅 )

@gerbrent gerbrent added the in progress currently being worked on label Sep 6, 2022
@elreydetoda elreydetoda force-pushed the patch/modifying_e2e_GH_action branch from 6d248b1 to 9d478a9 Compare September 6, 2022 11:44
@elreydetoda
Copy link
Collaborator Author

elreydetoda commented Sep 7, 2022

I re-worked some more things, and with my latest commit we shouldn't get failed tests from people submitting PRs, because it'll skip the upload reports thing. You can still go into the action and see the test results (plus it'll fail if the tests fail), but I think it keeps telling us that it's failing because they don't have permissions to write to the repo or something like that.

examples of failures:

@elreydetoda
Copy link
Collaborator Author

elreydetoda commented Sep 9, 2022

BTW, I merged to resolve the conflict instead of rebasing so that all my links to stuff from my comment above didn't break things.

@gerbrent
Copy link
Collaborator

Hey @elreydetoda - any thoughts on the best way to test this for us mere mortals?

I wonder if you'll say "a dev branch!" to which I would say LETS DO IT!! 💪🏻

@elreydetoda
Copy link
Collaborator Author

Lol, ya that'd probably be the easiest.

If that's the case though I might need to make a modification or two to the PR (so it properly triggers on the develop branch as well as main). I'll make that modification tonight, and I'll let you know when it's good to go.

I'll also need to change my target branch for the PR (since it's currently targeting main).

@elreydetoda elreydetoda changed the base branch from main to develop September 13, 2022 04:13
@elreydetoda
Copy link
Collaborator Author

Alright, @gerbrent I've created the develop branch, and now I'm pointing my PR to that branch. You'll need to still follow this accompanying documentation, so the containers build properly (or you could disable those actions from running if you want for now).

Here's what the workflow will look like:

@elreydetoda
Copy link
Collaborator Author

BTW @gerbrent , if you want we can hop on a call and walk through the setup of this environment as well 😁 (whatever you're most comfortable with 🙂)

@elreydetoda elreydetoda mentioned this pull request Sep 27, 2022
@elreydetoda elreydetoda deleted the branch JupiterBroadcasting:develop September 27, 2022 22:45
@elreydetoda elreydetoda reopened this Sep 27, 2022
@gerbrent
Copy link
Collaborator

Merging this as Part A, with Part B involving some JB/ @ironicbadger involvement to handle deployment functionality. We will also need to sign up to quay.io in that process, so definitely more JB Action Required.

Onward!

@gerbrent gerbrent merged commit 2c80d46 into JupiterBroadcasting:develop Oct 23, 2022
@gerbrent
Copy link
Collaborator

@ironicbadger - care to link up w @elreydetoda to complete the final stages of this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Related to the development environment feedback requested in progress currently being worked on urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Resource not accessible by integration" in Pull Requests with e2e testing E2E Tests - Slow Builds
2 participants