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

Seceng 260/sync with upstream #36

Merged
merged 9 commits into from
Sep 30, 2024
Merged

Conversation

roo-ahine
Copy link

@roo-ahine roo-ahine commented Sep 11, 2024

SECENG-260

  • Spin up Docker containers to test Yopass, creates and retrieves a secret using Selenium.
  • Add Github action to sync the upstream master branch to staging to test initially with the aim to eventually sync to the forked master branch in this repo.
  • Update Github action to raise a PR before merging to staging branch.

roo-ahine and others added 5 commits September 11, 2024 09:48
* add a github action to sync upstream branch to staging

* remove trailing space from github action

* fix yamllint errors

* fix yaml lint issues

* relax yamllint config rules

* fix yamllint rules config

* lint App.tsx

* restore hopper config

* update yamllint rules config
* add selenium docker image to test yopass secret retrieval

* fix typo in circle config

* fix circle config

* update docker-compose config for yopass container

* add missing checkout step to docker compose task

* add setup_remote_docker config for circleci

* increase wait time and echo selenium result

* use f-string to populate yopass test url in selenium test

* debug docker compose ICC issue

* attempt to connect to yopass container via ip

* take out network debug lines from circleci config

* remove custom bridged network to debug

* remove old network config from docker compose

* update url for selenium test

* updated docker-compose config

* re-add internal bridged network to docker

* include no cache arg to docker compose
@nudgebot-stable
Copy link

Could not find org verified email for user ayodele-ademeso. Either they need to add an org verified e-mail or something went wrong when retrieving their e-mail. You'll have to nudge them some other way for now. :(

@nudgebot-stable
Copy link

Not notifying user samcrang. User has Nudgebot notifications muted.

command: |
docker compose build --no-cache
docker compose up -d
sleep 10

Choose a reason for hiding this comment

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

Assuming this is us waiting a period of time for the test to finish, can we do a watch with a timeout instead?

Copy link
Author

@roo-ahine roo-ahine Sep 20, 2024

Choose a reason for hiding this comment

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

replaced the sleep with the --wait flag for docker compose to wait until the containers are healthy, still need a sleep statement as at the moment if I run the docker logs command it fails immediately, if I put in the pause it gives the selenium test enough time to complete and add the log message.

This comment was marked as resolved.

@roo-ahine roo-ahine merged commit fa496e3 into master Sep 30, 2024
20 checks passed
@roo-ahine roo-ahine deleted the SECENG-260/sync_with_upstream branch September 30, 2024 09:20
roo-ahine added a commit that referenced this pull request Oct 10, 2024
* Seceng 260/sync with upstream (#36)

* add a github action to sync upstream branch to staging (#34)

* add a github action to sync upstream branch to staging

* remove trailing space from github action

* fix yamllint errors

* fix yaml lint issues

* relax yamllint config rules

* fix yamllint rules config

* lint App.tsx

* restore hopper config

* update yamllint rules config

* add selenium docker image to test yopass secret retrieval (#35)

* add selenium docker image to test yopass secret retrieval

* fix typo in circle config

* fix circle config

* update docker-compose config for yopass container

* add missing checkout step to docker compose task

* add setup_remote_docker config for circleci

* increase wait time and echo selenium result

* use f-string to populate yopass test url in selenium test

* debug docker compose ICC issue

* attempt to connect to yopass container via ip

* take out network debug lines from circleci config

* remove custom bridged network to debug

* remove old network config from docker compose

* update url for selenium test

* updated docker-compose config

* re-add internal bridged network to docker

* include no cache arg to docker compose

* update circleci config and remove comment from selenium script

* add newline to end of docker compose file

* add newline to end of docker compose file

* replace sleep with wait argument for docker compose and tear down containers when done

* update docker to wait for healthy containers and re-added sleep and updated github action to raise a PR on sync

* remove trailing space for github action

* revert file perms for hopper config

* fix sync github action for adding upstream repo (#39)

* PSC-2063 scan for container vulnerabilities (#38)

* PSC-2063 scan for container vulnerabilities

* PSC-2063 scan for container vulnerabilities

* PSC-2063 scan for container vulnerabilities

* use correct upstream branch (#40)

* bump go version to patch critical vulnerability

* fix conflict for gh action

---------

Co-authored-by: tdeshapriya <100767314+tdeshapriya@users.noreply.github.com>
roo-ahine added a commit that referenced this pull request Oct 10, 2024
* Seceng 260/sync with upstream (#36)

* add a github action to sync upstream branch to staging (#34)

* add a github action to sync upstream branch to staging

* remove trailing space from github action

* fix yamllint errors

* fix yaml lint issues

* relax yamllint config rules

* fix yamllint rules config

* lint App.tsx

* restore hopper config

* update yamllint rules config

* add selenium docker image to test yopass secret retrieval (#35)

* add selenium docker image to test yopass secret retrieval

* fix typo in circle config

* fix circle config

* update docker-compose config for yopass container

* add missing checkout step to docker compose task

* add setup_remote_docker config for circleci

* increase wait time and echo selenium result

* use f-string to populate yopass test url in selenium test

* debug docker compose ICC issue

* attempt to connect to yopass container via ip

* take out network debug lines from circleci config

* remove custom bridged network to debug

* remove old network config from docker compose

* update url for selenium test

* updated docker-compose config

* re-add internal bridged network to docker

* include no cache arg to docker compose

* update circleci config and remove comment from selenium script

* add newline to end of docker compose file

* add newline to end of docker compose file

* replace sleep with wait argument for docker compose and tear down containers when done

* update docker to wait for healthy containers and re-added sleep and updated github action to raise a PR on sync

* remove trailing space for github action

* revert file perms for hopper config

* fix sync github action for adding upstream repo (#39)

* PSC-2063 scan for container vulnerabilities (#38)

* PSC-2063 scan for container vulnerabilities

* PSC-2063 scan for container vulnerabilities

* PSC-2063 scan for container vulnerabilities

* use correct upstream branch (#40)

* bump go version to patch critical vulnerability

* fix conflict for gh action

* bump golang version in Dockerfile to patch critical vuln

---------

Co-authored-by: tdeshapriya <100767314+tdeshapriya@users.noreply.github.com>
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.

2 participants