Skip to content

Commit

Permalink
Merge pull request #9229 from madhavajay/madhava/bigquery_user_testing
Browse files Browse the repository at this point in the history
Testing User, email and password flows
  • Loading branch information
madhavajay authored Aug 31, 2024
2 parents 497d6d1 + ff0a35c commit cda05f8
Show file tree
Hide file tree
Showing 36 changed files with 1,458 additions and 219 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Build the docs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0 bump2version==1.0.1
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2 bump2version==1.0.1
uv --version
- name: Generate Release Metadata
Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0 setuptools wheel twine bump2version PyYAML
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2 setuptools wheel twine bump2version PyYAML
uv --version
- name: Bump to Final Release version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd-post-release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
- name: Install tox and uv
run: |
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0 tox-current-env
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2 tox-current-env
- name: Run unit tests
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0 bump2version==1.0.1
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2 bump2version==1.0.1
uv --version
- name: Get Release tag
Expand Down Expand Up @@ -392,7 +392,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0 setuptools wheel twine bump2version PyYAML
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2 setuptools wheel twine bump2version PyYAML
uv --version
- name: Bump the Version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd-syftcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Build syftcli
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests-notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get pip cache dir
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post-merge-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install pip packages
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Check and Bump Protocol Version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
if: steps.changes.outputs.frontend == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-helm-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# Install python deps
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
kube-linter version
polaris version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-helm-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
# Install python deps
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
# Install kubernetes
brew install helm k3d devspace kubectl
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install pip packages
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/pr-tests-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
if: steps.changes.outputs.stack == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Run syft backend base image building test
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
if: steps.changes.outputs.stack == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
if: steps.changes.outputs.stack == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down Expand Up @@ -328,7 +328,7 @@ jobs:
if: steps.changes.outputs.stack == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down Expand Up @@ -451,11 +451,11 @@ jobs:
run: |
sudo python ./scripts/patch_hosts.py --add-k3d-registry
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
large-packages: false
# - name: Free Disk Space (Ubuntu)
# uses: jlumbroso/free-disk-space@main
# with:
# tool-cache: true
# large-packages: false

# free 10GB of space
- name: Remove unnecessary files
Expand All @@ -471,7 +471,7 @@ jobs:
if: steps.changes.outputs.stack == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down Expand Up @@ -513,6 +513,7 @@ jobs:
timeout-minutes: 60
env:
GITHUB_CI: true
TOX_PYTHON: python${{ matrix.python-version }}
shell: bash
run: |
K3D_VERSION=v5.6.3
Expand All @@ -526,6 +527,7 @@ jobs:
curl -sSL https://github.com/loft-sh/devspace/releases/download/${DEVSPACE_VERSION}/devspace-linux-amd64 -o ./devspace
chmod +x devspace
devspace version
export PATH="/usr/share/miniconda/bin:$PATH"
tox -e stack.test.notebook.scenario.k8s
- name: Get current timestamp
Expand Down Expand Up @@ -595,7 +597,7 @@ jobs:
if: steps.changes.outputs.syft == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/pr-tests-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
if: steps.changes.outputs.syft == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
if: steps.changes.outputs.syft == 'true' || steps.changes.outputs.notebooks == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down Expand Up @@ -194,7 +194,8 @@ jobs:
matrix:
# Disable on windows until its flakyness is reduced.
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
# os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest] # mac wont start SMTPD mail server?
python-version: ["3.12"]
deployment-type: ["python"]
bump-version: ["False"]
Expand Down Expand Up @@ -244,7 +245,7 @@ jobs:
if: steps.changes.outputs.syft == 'true' || steps.changes.outputs.notebooks_scenario == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand All @@ -264,15 +265,15 @@ jobs:
${{ runner.os }}-uv-py${{ matrix.python-version }}-
- name: Run notebook scenario tests
uses: nick-fields/retry@v3
if: steps.changes.outputs.syft == 'true' || steps.changes.outputs.notebooks_scenario == 'true'
env:
ORCHESTRA_DEPLOYMENT_TYPE: "${{ matrix.deployment-type }}"
BUMP_VERSION: "${{ matrix.bump-version }}"
with:
timeout_seconds: 2400
max_attempts: 3
command: tox -e syft.test.notebook.scenario
TOX_PYTHON: python${{ matrix.python-version }}
shell: bash
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
tox -e syft.test.notebook.scenario
pr-tests-syft-notebook-scenario-sync:
strategy:
Expand Down Expand Up @@ -330,7 +331,7 @@ jobs:
if: steps.changes.outputs.syft == 'true' || steps.changes.outputs.notebooks_scenario == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down Expand Up @@ -407,7 +408,7 @@ jobs:
if: steps.changes.outputs.stack == 'true' || steps.changes.outputs.notebooks == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down Expand Up @@ -504,7 +505,7 @@ jobs:
if: steps.changes.outputs.syft == 'true'
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
pip install uv==0.4.1 tox==4.18.0 tox-uv==1.11.2
uv --version
- name: Get uv cache dir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"metadata": {},
"outputs": [],
"source": [
"# # stdlib\n",
"# import os\n",
"\n",
"# os.environ[\"ORCHESTRA_DEPLOYMENT_TYPE\"] = \"remote\"\n",
"# os.environ[\"DEV_MODE\"] = \"True\"\n",
"# os.environ[\"TEST_EXTERNAL_REGISTRY\"] = \"k3d-registry.localhost:5800\""
Expand Down Expand Up @@ -47,6 +49,23 @@
"env[\"DEFAULT_ROOT_PASSWORD\"] = ROOT_PASSWORD"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# third party\n",
"# run email server\n",
"from helpers import EmailServer\n",
"from helpers import SMTPTestServer\n",
"\n",
"email_server = EmailServer()\n",
"email_server.reset_emails()\n",
"smtp_server = SMTPTestServer(email_server)\n",
"smtp_server.start()"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -176,6 +195,24 @@
"root_client.users.delete(new_user_id2)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"smtp_server.stop()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"server.land()"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -185,6 +222,11 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
Expand All @@ -195,7 +237,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
"version": "3.12.2"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit cda05f8

Please sign in to comment.