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

chore(build): run QE tests during PR workflow #1008

Closed
wants to merge 1 commit into from

Conversation

mirekdlugosz
Copy link
Collaborator

The main goal is to run QE tests on ephemeral environment as part of PR workflow.

Right now there's one such tests that goes to subscription table and verifies it is not displayed. Later we will figure out how to create data inside ephemeral env, and we'll work on extending suite of tests.

I've got this running when issuing commands manually from my machine. Let's see if I can get it running from PR check as well.

@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2022

Codecov Report

Merging #1008 (ff7466a) into dev (4e97ff0) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #1008   +/-   ##
=======================================
  Coverage   93.58%   93.58%           
=======================================
  Files         122      122           
  Lines        4081     4081           
  Branches     1646     1646           
=======================================
  Hits         3819     3819           
  Misses        245      245           
  Partials       17       17           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e97ff0...ff7466a. Read the comment docs.

@mirekdlugosz mirekdlugosz force-pushed the ee-pr-checks branch 2 times, most recently from 7170474 to 73bee5c Compare November 23, 2022 18:26
@mirekdlugosz
Copy link
Collaborator Author

OK, so this passed. If you go to "details" under ci.int.devshift.net PR build and log in, you can click "Test Results" and see breakdown of tests that were run. Which is nice.

I am pretty sure accessing ci.int.devshift.net requires VPN.

Some time breakout of this specific run:

  • running unit tests, building container, pushing it to quay: 02:49
  • deploying new ephemeral environment with subscriptions, including backend and dependencies: 10:31
  • deploying pod with QE tests and running them: 02:06
  • the whole thing: 16:08

GitHub tells me GitHub action took 8 minutes, so App SRE workflow doubles that.

For the reference, backend team needs around 20 minutes to complete their PR job on App SRE infra. We'll probably need a little more, because UI tests are always going to be slower than API. Obviously I don't want to make that too slow, I think 25 minutes is reasonable, 30 minutes is absolute maximum. We will have to cut the scope of UI tests to meet this time requirement - we will run fewer tests than backend team does.

@cdcabrera
Copy link
Member

@mirekdlugosz would removing the redundancy of running the GUI tests make much of a difference (removing the $ yarn test:ephemeral and related node scripts in package.json)?

If we haven't already removed the redundant unit test checks, It would be preferable if we could and focus on just QE's facet.

Most of it is we still use GitHub actions for

  • not having to login to review unit test results on a public project
  • codecov aspect of actions, unclear if this support works or is even provided with the behind-the-scenes checks. we generate the coverage, just unclear where it goes?
  • a more in-depth aspect of dev integration checks. we had to disable parts of those checks to get them to pass for the behind-the-scenes checks
  • commit linting
  • and generally just easier to find documentation =)

cdcabrera
cdcabrera previously approved these changes Nov 28, 2022
Copy link
Member

@cdcabrera cdcabrera left a comment

Choose a reason for hiding this comment

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

Posted a non-blocking question/comment. Just need a rebase and we should be good

@cdcabrera cdcabrera added build 202212 project phase build:hold Not really blocked. Either updates were just released or local validation required labels Nov 30, 2022
@cdcabrera
Copy link
Member

As of 20221130 holding PR. It's recommend we hold until there are more tests associated with this check

@san7ket
Copy link
Contributor

san7ket commented Dec 21, 2022

/retest

@san7ket
Copy link
Contributor

san7ket commented Jan 25, 2023

/retest

@san7ket
Copy link
Contributor

san7ket commented Jan 31, 2023

/retest

@san7ket
Copy link
Contributor

san7ket commented Feb 7, 2023

/retest

@san7ket
Copy link
Contributor

san7ket commented Feb 7, 2023

/retest

2 similar comments
@mirekdlugosz
Copy link
Collaborator Author

/retest

@san7ket
Copy link
Contributor

san7ket commented Feb 8, 2023

/retest

Run QE tests on ephemeral environment as part of PR workflow.
@ntkathole
Copy link
Member

/retest

@san7ket
Copy link
Contributor

san7ket commented Mar 2, 2023

Closing this in favor of #1072

@cdcabrera cdcabrera closed this Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
202212 project phase 202304 project phase build:hold Not really blocked. Either updates were just released or local validation required build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants