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

dockolith POC #1331

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open

dockolith POC #1331

wants to merge 47 commits into from

Conversation

jaredperreault-okta
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Nov 3, 2022

Codecov Report

Base: 92.07% // Head: 92.07% // No change to project coverage 👍

Coverage data is based on head (64c1a96) compared to base (3136928).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1331   +/-   ##
=======================================
  Coverage   92.07%   92.07%           
=======================================
  Files         214      214           
  Lines        5149     5149           
  Branches     1094     1094           
=======================================
  Hits         4741     4741           
  Misses        385      385           
  Partials       23       23           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jaredperreault-okta jaredperreault-okta marked this pull request as ready for review November 4, 2022 23:06
LOCAL_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)

export CI=true
export SKIP_SETUP_BUILD=1
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't the E2E tests require the module to be built?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A build is ran after dockolith is installed, this is just skipping a redundant build

create_log_group "Create Test Org"
# Add widget test host to /etc/hosts
export TEST_ORG_SUBDOMAIN="authjs-test-1"
echo "${DOCKER_HOST_CONTAINER_IP} ${TEST_ORG_SUBDOMAIN}.okta1.com" >> /etc/hosts
Copy link
Contributor

Choose a reason for hiding this comment

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

This line does not work locally. It can be wrapped in

if [[ -n ${DOCKOLITH_CI} ]]; then
  # do the thing
fi


# Dockolith should be installed before running this script

if [[ -n "${TEST_SUITE_ID}" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

this condition can be removed, dockolith runs locally now

# Yarn "add" always modifies package.json https://github.com/yarnpkg/yarn/issues/1743
# Make a backup of package.json and restore it after install
cp package.json package.json.bak
yarn add -DW --no-lockfile file:./scripts/dockolith
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is where the build happens. Can add --ignore-scripts option to skip the build step

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding --ignore-scripts here prevents dockolith from building

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.

3 participants