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

bug/3141-e2e-failing + nexus integration #3188

Open
wants to merge 28 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fe87c00
Nginx change to try forcing Referer in header to be passed for the PO…
Sep 12, 2024
7abf072
whitespace to retry
Sep 12, 2024
62627d0
update to admin url, still need to deploy to develop
Sep 12, 2024
b71eb49
reducing workflows, trying nexus for cf
Sep 13, 2024
6afd66f
reverting curl, apt working again?
Sep 13, 2024
f3f0a04
now using nexus for apt
Sep 13, 2024
500e19f
and pypi is proxying now
Sep 13, 2024
6433984
frontend files
Sep 13, 2024
1bce850
remove host keyword
andrew-jameson Sep 13, 2024
112d2f8
reversion
Sep 13, 2024
ae7bc25
break out pass header args
Sep 13, 2024
681f138
After testing again in develop, back to nginx changes around this ref…
Sep 16, 2024
4736b15
Django docs not lining up, maybe we need this?
Sep 16, 2024
bae540e
Trying CORS flag
Sep 16, 2024
e1a0d24
hardcoding referer vs using backend, we think it might be frontend uri
Sep 16, 2024
38fbf17
comment removed
Sep 16, 2024
c51e86b
Apply suggestions from code review
andrew-jameson Sep 16, 2024
732e638
trying env var in nginx, latest cypress
Sep 16, 2024
f2046ea
Merge branch 'bug/3141-e2e-failing' of github.com:raft-tech/TANF-app …
Sep 16, 2024
821636a
can this stop the double-deploy?
Sep 16, 2024
d0bb36a
trying frontend with a diferent mirror
Sep 17, 2024
69f3659
syntax nginx change
Sep 17, 2024
5f00c42
removing duplicative workflows
Sep 17, 2024
73eddac
Merge branch 'develop' into bug/3141-e2e-failing
andrew-jameson Sep 18, 2024
b431b73
Changes from office hours working session
Sep 18, 2024
c2276d3
Clean-up of commented code or incorrect changes/fixes
andrew-jameson Sep 18, 2024
677c45c
New lock file
Sep 18, 2024
6a33333
npm dependencies fix
Sep 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .circleci/deployment/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- equal: [ master, << pipeline.git.branch >> ]
- equal: [ main, << pipeline.git.branch >> ]
- equal: [ develop, << pipeline.git.branch >> ]
- equal: [ bug/3141-e2e-failing, << pipeline.git.branch >> ]
- << pipeline.parameters.run_dev_deployment >>
- not: << pipeline.parameters.run_nightly_owasp_scan >>

Expand All @@ -21,13 +22,15 @@
branches:
ignore:
- develop
- bug/3141-e2e-failing
- main
- master
- deploy-infrastructure-staging:
filters:
branches:
only:
- develop
- bug/3141-e2e-failing
- main
- deploy-infrastructure-production:
filters:
Expand All @@ -41,6 +44,7 @@
branches:
ignore:
- develop
- bug/3141-e2e-failing
- main
- master
- enable-versioning:
Expand Down Expand Up @@ -93,13 +97,15 @@
- develop
- main
- master
- bug/3141-e2e-failing
- deploy-develop:
requires:
- deploy-infrastructure-staging
filters:
branches:
only:
- develop
- bug/3141-e2e-failing
- deploy-staging:
requires:
- deploy-infrastructure-staging
Expand All @@ -121,9 +127,11 @@
branches:
only:
- develop
- bug/3141-e2e-failing
- make_erd: # from ../util folder
filters:
branches:
only:
- develop
- master

10 changes: 9 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ tasks:
- docker-compose -f docker-compose.local.yml up tdp-frontend-test -d
- docker-compose -f docker-compose.local.yml exec tdp-frontend-test sh -c "npm run test:cov"

cypress:
desc: Run cypress tests
dir: tdrs-frontend
cmds:
- docker-compose -f docker-compose.local.yml up tdp-frontend-test -d
- npm run test:e2e


frontend-lint:
desc: Run eslint in the frontend container
dir: tdrs-frontend
Expand Down Expand Up @@ -246,4 +254,4 @@ tasks:
help:
desc: Show this help message
cmds:
- task --list
- task --list
16 changes: 11 additions & 5 deletions tdrs-backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,24 @@ ENV DJANGO_SETTINGS_MODULE=tdpservice.settings.local
ENV DJANGO_CONFIGURATION=Local
# Allows docker to cache installed dependencies between builds
COPY Pipfile Pipfile.lock /tdpapp/
COPY sources.list /etc/apt/sources.list
#RUN bash -c 'echo "deb https://tdp-nexus.dev.raftlabs.tech/repository/apt-proxy/ buster main"' >> /etc/apt/sources.list
WORKDIR /tdpapp/
# Download latest listing of available packages:
RUN apt-get -y update
# Upgrade already installed packages:
RUN apt-get -y upgrade
# Install packages:
RUN apt-get install -y gcc graphviz graphviz-dev libpq-dev python3-dev vim curl ca-certificates

# Postgres client setup
RUN apt --purge remove postgresql postgresql-* && apt install -y postgresql-common curl ca-certificates && install -d /usr/share/postgresql-common/pgdg && \
RUN bash -c 'echo "deb [trusted=yes] https://tdp-nexus.dev.raftlabs.tech/repository/apt-proxy-postgres/ buster-pdpg main" >> /etc/apt/sources.list'
RUN apt-get update -y && apt-get upgrade -y
RUN apt install -y postgresql-common && install -d /usr/share/postgresql-common/pgdg && \
sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc trusted=yes] https://tdp-nexus.dev.raftlabs.tech/repository/apt-proxy-postgres/ buster-pgdg main" >> /etc/apt/sources.list' && \
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \
sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \
apt -y update && apt install postgresql-client-15 -y
# Install packages:
RUN apt install -y gcc graphviz graphviz-dev libpq-dev python3-dev vim
apt -y update && apt -y upgrade && apt install postgresql-client-15 -y

# Install pipenv
RUN pip install --upgrade pip pipenv
RUN pipenv install --dev --system --deploy
Expand Down
5 changes: 3 additions & 2 deletions tdrs-backend/Pipfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
trusted-host = "https://tdp-nexus.dev.raftlabs.tech/"
url = "https://tdp-nexus.dev.raftlabs.tech/repository/pypi-proxy/simple"
verify_ssl = true

[dev-packages]
Expand Down Expand Up @@ -61,4 +62,4 @@ sendgrid = "==6.10.0"
sentry-sdk = "==2.11.0"

[requires]
python_version = "3.10.8"
python_version = "3.10.8"
Loading
Loading