-
Notifications
You must be signed in to change notification settings - Fork 18
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): Ephemeral Environments onboarding step 1 #928
Conversation
Codecov Report
@@ Coverage Diff @@
## ci #928 +/- ##
==========================================
+ Coverage 94.21% 94.23% +0.02%
==========================================
Files 128 128
Lines 3958 3958
Branches 1550 1550
==========================================
+ Hits 3729 3730 +1
+ Misses 211 210 -1
Partials 18 18
Continue to review full report at Codecov.
|
ca647f7
to
9e65157
Compare
@mirekdlugosz I was unable to get the podman instance to fire off as verification and ended up receiving an error that seems to persist after attempting to run the command above. This may have to do with podman and my machine not being a linux box, unable to mount file ... seems to be an ongoing issue.
Anyway, that being found. I went ahead and broke out the ephemeral environment NPM scripts so we can avoid stepping on any existing processes used by GitHub actions and local development. And finally given that both
|
05f2f02
to
5de8e4c
Compare
Confirmed that setting
Same command will work after changing One note: this requires bumping only major number in node version. I.e. when requiring Node I can't really help with containers on Mac issues. If you can try with Docker, that would be good enough (in fact, build scripts have |
@mirekdlugosz sure thing on the whole version numbers issue. I'll refine the string replace today add it to this PR then get you to go back through and confirm it works
|
if we ever need to expand to using the full node version we can, right now lets stick to using the major version only
For posterity... purposed branching paths Align using existing branchesThis would be easiest when the GUI has a release where all branches would be temporarily aligned for a release rebase.
Minimally align, our chance to resetThis strategy removes the concept of leveraging
|
* integrate frontend container building script * node version-engine from package.json
* integrate frontend container building script * node version-engine from package.json
* integrate frontend container building script * node version-engine from package.json
* integrate frontend container building script * node version-engine from package.json
* integrate frontend container building script * node version-engine from package.json
* integrate frontend container building script * node version-engine from package.json
* integrate frontend container building script * node version-engine from package.json
What's included
Files necessary for onboarding curiosity to Ephemeral Environments.
This is necessary for App-SRE Jenkins to build curiosity container. We need curiosity container to deploy curiosity on ephemeral cluster. We need curiosity deployed on cluster to verify if it runs and start working on running iqe tests on EE. So we need this PR in to do anything else related to EEs.
This PR includes #862 and one more commit, both rebased on top of
ci
branch. It's self-contained and should be rebase-able on top of any branch.Notes
Current build pipeline uses
verify
script for PR testing andbuild:prod
script for production builds. Neither was used, so right now I just made them aliases to existing scripts. But we can change that if we want to have different scripts for App-SRE Jenkins, Travis and local development.jest cache is disabled based on request of App-SRE (see "PR Check and Build Deploy" on "Frontend Container Migration Onboarding" in internal consoledot docs).
How to test
Why?
App-SRE Jenkins will use
frontend-build.sh
@insights-frontend-builder-common script to build container.Container is built by
quay.io/cloudservices/frontend-build-container
container, with source code available ininsights-platform/frontend-build-container
repository in internal gitlab instance. That container basically sets specific node version and runsyarn install --immutable
. Then it will callyarn verify
(if IS_PR=true) oryarn build:prod
(if IS_PR=false). Various parts afterwards kind of expectdist
directory to be available, so you can presumeverify
is supposed to run tests and build.As a side note, we can provide our own build logic in
ci.sh
script.Example
N/A
Updates issue/story
N/A