-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
226 changed files
with
3,054 additions
and
3,199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
name: Tests (Azure Test) | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
main: | ||
name: Run Tests on Azure temp VM | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- name: Launch VM on Azure | ||
id: azlaunch | ||
run: | | ||
echo "Authenticating to Azure..." | ||
az login --service-principal -u ${{ secrets.AZ_TESTS_APP_ID }} -p ${{ secrets.AZ_TESTS_PWD }} --tenant ${{ secrets.AZ_TESTS_TENANT_ID }} | ||
echo "Creating VM..." | ||
vminfo=$(az vm create \ | ||
--resource-group ghaDatatrackerTests \ | ||
--name tmpGhaVM2 \ | ||
--image Ubuntu2204 \ | ||
--admin-username azureuser \ | ||
--generate-ssh-keys \ | ||
--priority Spot \ | ||
--size Standard_D4as_v5 \ | ||
--max-price -1 \ | ||
--os-disk-size-gb 30 \ | ||
--eviction-policy Delete \ | ||
--nic-delete-option Delete \ | ||
--output tsv \ | ||
--query "publicIpAddress") | ||
echo "ipaddr=$vminfo" >> "$GITHUB_OUTPUT" | ||
echo "VM Public IP: $vminfo" | ||
cat ~/.ssh/id_rsa > ${{ github.workspace }}/prvkey.key | ||
ssh-keyscan -t rsa $vminfo >> ~/.ssh/known_hosts | ||
- name: Remote SSH into VM | ||
uses: appleboy/ssh-action@55dabf81b49d4120609345970c91507e2d734799 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
host: ${{ steps.azlaunch.outputs.ipaddr }} | ||
port: 22 | ||
username: azureuser | ||
command_timeout: 60m | ||
key_path: ${{ github.workspace }}/prvkey.key | ||
envs: GITHUB_TOKEN | ||
script_stop: true | ||
script: | | ||
export DEBIAN_FRONTEND=noninteractive | ||
lsb_release -a | ||
sudo apt-get update | ||
sudo apt-get upgrade -y | ||
echo "Installing Docker..." | ||
curl -fsSL https://get.docker.com -o get-docker.sh | ||
sudo sh get-docker.sh | ||
echo "Starting Containers..." | ||
sudo docker network create dtnet | ||
sudo docker run -d --name db --network=dtnet ghcr.io/ietf-tools/datatracker-db:latest & | ||
sudo docker run -d --name app --network=dtnet ghcr.io/ietf-tools/datatracker-app-base:latest sleep infinity & | ||
wait | ||
echo "Cloning datatracker repo..." | ||
sudo docker exec app git clone --depth=1 https://github.com/ietf-tools/datatracker.git . | ||
echo "Prepare tests..." | ||
sudo docker exec app chmod +x ./dev/tests/prepare.sh | ||
sudo docker exec app sh ./dev/tests/prepare.sh | ||
echo "Running checks..." | ||
sudo docker exec app ietf/manage.py check | ||
sudo docker exec app ietf/manage.py migrate --fake-initial | ||
echo "Running tests..." | ||
sudo docker exec app ietf/manage.py test -v2 --validate-html-harder --settings=settings_test | ||
- name: Destroy VM + resources | ||
if: always() | ||
shell: pwsh | ||
run: | | ||
echo "Destroying VM..." | ||
az vm delete -g ghaDatatrackerTests -n tmpGhaVM2 --yes --force-deletion true | ||
$resourceOrderRemovalOrder = [ordered]@{ | ||
"Microsoft.Compute/virtualMachines" = 0 | ||
"Microsoft.Compute/disks" = 1 | ||
"Microsoft.Network/networkInterfaces" = 2 | ||
"Microsoft.Network/publicIpAddresses" = 3 | ||
"Microsoft.Network/networkSecurityGroups" = 4 | ||
"Microsoft.Network/virtualNetworks" = 5 | ||
} | ||
echo "Fetching remaining resources..." | ||
$resources = az resource list --resource-group ghaDatatrackerTests | ConvertFrom-Json | ||
$orderedResources = $resources | ||
| Sort-Object @{ | ||
Expression = {$resourceOrderRemovalOrder[$_.type]} | ||
Descending = $False | ||
} | ||
echo "Deleting remaining resources..." | ||
$orderedResources | ForEach-Object { | ||
az resource delete --resource-group ghaDatatrackerTests --ids $_.id --verbose | ||
} | ||
echo "Logout from Azure..." | ||
az logout |
Binary file not shown.
Binary file renamed
BIN
+5.19 KB
...bem-npm-0.15.10-41ccecaa2f-cbab72a7b5.zip → ...bem-npm-0.15.12-bf8b43dc1f-9fa7ddd62b.zip
Binary file not shown.
Binary file added
BIN
+78.1 KB
.yarn/cache/@css-render-vue3-ssr-npm-0.15.12-a130f4db3a-a5505ae161.zip
Binary file not shown.
Binary file renamed
BIN
+6.01 KB
...t-js-npm-8.49.0-e8f6510b47-a6601807c8.zip → ...t-js-npm-8.51.0-51f088b88b-0228bf1e1e.zip
Binary file not shown.
Binary file renamed
BIN
+7.13 KB
...trap5-npm-6.1.8-bbeae5dafc-c78ef0d62e.zip → ...trap5-npm-6.1.9-ef68c3c094-1d6168fafc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-48 KB
.yarn/cache/@fullcalendar-daygrid-npm-6.1.8-3f45184389-a99441c81d.zip
Binary file not shown.
Binary file added
BIN
+48.3 KB
.yarn/cache/@fullcalendar-daygrid-npm-6.1.9-4c0da59f84-3db55247c4.zip
Binary file not shown.
Binary file renamed
BIN
+12.2 KB
...endar-npm-6.1.8-bee329d052-f322ce54bb.zip → ...endar-npm-6.1.9-92e390eda8-d47daf4ae0.zip
Binary file not shown.
Binary file removed
BIN
-65.1 KB
.yarn/cache/@fullcalendar-interaction-npm-6.1.8-6c6b6987db-3ef0da6dca.zip
Binary file not shown.
Binary file added
BIN
+65.2 KB
.yarn/cache/@fullcalendar-interaction-npm-6.1.9-f729b81a3d-787111ea6f.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+55.8 KB
...egrid-npm-6.1.8-22d8c05e30-122786fd40.zip → ...egrid-npm-6.1.9-b227fefa80-8c12a508f7.zip
Binary file not shown.
Binary file renamed
BIN
+15.6 KB
...-vue3-npm-6.1.8-a4963d0029-cff81d98ae.zip → ...-vue3-npm-6.1.9-3c150e259d-2c1c0fbe72.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+32.5 KB
.yarn/cache/@parcel-bundler-default-npm-2.10.0-bf1aa01515-58d3619928.zip
Binary file not shown.
Binary file removed
BIN
-25.4 KB
.yarn/cache/@parcel-bundler-default-npm-2.9.3-da108dccec-271f354e61.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+2.61 KB
...r-raw-npm-2.9.3-be5ba2acf4-2124c347a5.zip → ...-raw-npm-2.10.0-961e5d9fe0-043fca0ecb.zip
Binary file not shown.
Binary file added
BIN
+4.07 KB
.yarn/cache/@parcel-config-default-npm-2.10.0-2a1fbdf24b-d780d05021.zip
Binary file not shown.
Binary file removed
BIN
-4.05 KB
.yarn/cache/@parcel-config-default-npm-2.9.3-a459e67e01-61ef21351e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+11.6 KB
...ostic-npm-2.9.3-76e1419611-5897500e3b.zip → ...stic-npm-2.10.0-1e389b369e-45c606ca52.zip
Binary file not shown.
Binary file renamed
BIN
+8.94 KB
...vents-npm-2.9.3-3d50908dd1-c61ac95ce2.zip → ...ents-npm-2.10.0-da42a4afa6-1d21cd4186.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+5.44 KB
...ogger-npm-2.9.3-2a18b6c370-eb68996b7b.zip → ...gger-npm-2.10.0-41ac90e34c-52d0b5331d.zip
Binary file not shown.
Binary file renamed
BIN
+3.83 KB
...-ansi-npm-2.9.3-98f72ce8d0-da1fed88dd.zip → ...ansi-npm-2.10.0-4dd4da44f3-35e2d07ec8.zip
Binary file not shown.
Binary file renamed
BIN
+5.78 KB
...fault-npm-2.9.3-2a2acb717f-23a588ee0f.zip → ...ault-npm-2.10.0-4b82db40fd-f2a32096d1.zip
Binary file not shown.
Binary file removed
BIN
-4.43 MB
.yarn/cache/@parcel-node-resolver-core-npm-3.0.3-e85849af08-871f09066f.zip
Binary file not shown.
Binary file added
BIN
+9.24 KB
.yarn/cache/@parcel-node-resolver-core-npm-3.1.0-9c9ff3ab8b-dcdd39bc6a.zip
Binary file not shown.
Binary file renamed
BIN
+6.18 KB
...r-css-npm-2.9.3-dab14ff100-09cdfb8191.zip → ...-css-npm-2.10.0-dbd5825b4e-ea15989512.zip
Binary file not shown.
Binary file renamed
BIN
+3.59 KB
...a-url-npm-2.9.3-2bb13f2a2f-38823e2aa5.zip → ...-url-npm-2.10.0-700cb5aab6-ec9530be83.zip
Binary file not shown.
Binary file renamed
BIN
+8.65 KB
...lnano-npm-2.9.3-682b0538d3-32658dd81c.zip → ...nano-npm-2.10.0-ee0243765c-1f6de13022.zip
Binary file not shown.
Binary file added
BIN
+2.74 KB
.yarn/cache/@parcel-optimizer-image-npm-2.10.0-a581b60cbd-94d5db2837.zip
Binary file not shown.
Binary file removed
BIN
-4.35 MB
.yarn/cache/@parcel-optimizer-image-npm-2.9.3-f742dd90da-5053b27244.zip
Binary file not shown.
Binary file renamed
BIN
+3.88 KB
...-svgo-npm-2.9.3-e6bd39a7c6-fd2f1a9fc6.zip → ...svgo-npm-2.10.0-154d938969-7201c63222.zip
Binary file not shown.
Binary file renamed
BIN
+5.33 KB
...r-swc-npm-2.9.3-9920b222d4-087012a418.zip → ...-swc-npm-2.10.0-caf3bb9c02-1fe68ee6ff.zip
Binary file not shown.
Binary file added
BIN
+152 KB
.yarn/cache/@parcel-package-manager-npm-2.10.0-4f4a39adee-7c4a95d9df.zip
Binary file not shown.
Binary file removed
BIN
-150 KB
.yarn/cache/@parcel-package-manager-npm-2.9.3-c065cee1b5-46acc905b8.zip
Binary file not shown.
Binary file renamed
BIN
+7.91 KB
...r-css-npm-2.9.3-c966dca775-725245c5d6.zip → ...-css-npm-2.10.0-cb31a968a8-11bf4cae4c.zip
Binary file not shown.
Binary file added
BIN
+7.01 KB
.yarn/cache/@parcel-packager-html-npm-2.10.0-d6f71e7e36-8dfd86e7d6.zip
Binary file not shown.
Binary file removed
BIN
-7.01 KB
.yarn/cache/@parcel-packager-html-npm-2.9.3-eb1e5ba8d3-163217c86a.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-42.3 KB
.yarn/cache/@parcel-packager-js-npm-2.9.3-27b52dc79e-db8c74ec80.zip
Binary file not shown.
Binary file renamed
BIN
+2.86 KB
...r-raw-npm-2.9.3-1adbe4f9b6-840ddac49c.zip → ...-raw-npm-2.10.0-01ef1b8e3e-492fe07ae5.zip
Binary file not shown.
Binary file renamed
BIN
+5.26 KB
...r-svg-npm-2.9.3-1e484acb3f-ff09cfdbc5.zip → ...-svg-npm-2.10.0-22326715bd-f49d7f3b88.zip
Binary file not shown.
Binary file added
BIN
+8.79 KB
.yarn/cache/@parcel-packager-wasm-npm-2.10.0-b1d2cd8f88-d9a13eb838.zip
Binary file not shown.
Binary file renamed
BIN
+3.34 KB
...lugin-npm-2.9.3-361c994700-e9d775a4fd.zip → ...ugin-npm-2.10.0-efbc58a209-e13ba6e7e5.zip
Binary file not shown.
Binary file renamed
BIN
+10.2 KB
...filer-npm-2.9.3-d11664e14b-30e988b99e.zip → ...iler-npm-2.10.0-b1ba499bc1-78d545edb7.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-169 KB
.yarn/cache/@parcel-reporter-cli-npm-2.9.3-d81ba5564f-f274aa2959.zip
Binary file not shown.
Binary file added
BIN
+458 KB
.yarn/cache/@parcel-reporter-dev-server-npm-2.10.0-2f19cb846e-e72fd6ec09.zip
Binary file not shown.
Binary file removed
BIN
-455 KB
.yarn/cache/@parcel-reporter-dev-server-npm-2.9.3-60ff1088fd-e8beff5f94.zip
Binary file not shown.
Binary file renamed
BIN
+4.87 KB
...racer-npm-2.9.3-80736d1c81-7922b19760.zip → ...acer-npm-2.10.0-184a89e262-0f8249b998.zip
Binary file not shown.
Binary file added
BIN
+3.78 KB
.yarn/cache/@parcel-resolver-default-npm-2.10.0-ca49f01a75-c82e2d3c4b.zip
Binary file not shown.
Binary file removed
BIN
-3.78 KB
.yarn/cache/@parcel-resolver-default-npm-2.9.3-f1c2ca1c12-9e14d5b9bc.zip
Binary file not shown.
Binary file added
BIN
+15.2 KB
.yarn/cache/@parcel-runtime-browser-hmr-npm-2.10.0-c6b7773a09-12928462c8.zip
Binary file not shown.
Binary file removed
BIN
-15.4 KB
.yarn/cache/@parcel-runtime-browser-hmr-npm-2.9.3-24c44db571-e79e827598.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.16 KB
.yarn/cache/@parcel-runtime-react-refresh-npm-2.10.0-b1f6c62bdf-dc567474a1.zip
Binary file not shown.
Binary file removed
BIN
-4.19 KB
.yarn/cache/@parcel-runtime-react-refresh-npm-2.9.3-2b78158a03-8fb9f8165e.zip
Binary file not shown.
Binary file renamed
BIN
+3.61 KB
...orker-npm-2.9.3-74438ce430-e296a42e3e.zip → ...rker-npm-2.10.0-3ca99a5366-d0bfd113b9.zip
Binary file not shown.
Binary file renamed
BIN
+43 MB
...er-js-npm-2.9.3-06fac1651a-c262307651.zip → ...rust-npm-2.10.0-99038406b0-466a78d27d.zip
Binary file not shown.
Binary file renamed
BIN
+25.8 KB
...babel-npm-2.9.3-dbdeb9d470-4d0246290e.zip → ...abel-npm-2.10.0-fb74ad8c73-fd64092c9c.zip
Binary file not shown.
Binary file added
BIN
+9.06 KB
.yarn/cache/@parcel-transformer-css-npm-2.10.0-4fc35c8005-acc26e9b3d.zip
Binary file not shown.
Binary file removed
BIN
-8.49 KB
.yarn/cache/@parcel-transformer-css-npm-2.9.3-ba3985d114-aad8e32439.zip
Binary file not shown.
Binary file renamed
BIN
+13.5 KB
...-html-npm-2.9.3-3ce9db1e20-77f150b568.zip → ...html-npm-2.10.0-b6d2228044-f28e0d3606.zip
Binary file not shown.
Binary file renamed
BIN
+8.04 KB
...image-npm-2.9.3-a6b435f582-554ff7c6c2.zip → ...mage-npm-2.10.0-e63bd526ed-61a47d7d8e.zip
Binary file not shown.
Binary file renamed
BIN
+2.9 KB
...tring-npm-2.9.3-4322e85564-e93463e7bb.zip → ...ring-npm-2.10.0-44c9b349db-618c919108.zip
Binary file not shown.
Binary file added
BIN
+19 KB
.yarn/cache/@parcel-transformer-js-npm-2.10.0-132e460926-e9944ce77c.zip
Binary file not shown.
Binary file renamed
BIN
+3.11 KB
...-json-npm-2.9.3-8b93a2737f-96e2157cfd.zip → ...json-npm-2.10.0-5525143f86-9c7aceb8e6.zip
Binary file not shown.
Binary file renamed
BIN
+14.8 KB
...stcss-npm-2.9.3-0bc0ad23cc-c396c25c5a.zip → ...tcss-npm-2.10.0-c1f60c708a-2e524bd513.zip
Binary file not shown.
Binary file renamed
BIN
+6.54 KB
...thtml-npm-2.9.3-e8c88a24c3-58d4836900.zip → ...html-npm-2.10.0-31d54ed3f0-7de343f0f9.zip
Binary file not shown.
Binary file renamed
BIN
+2.69 KB
...r-raw-npm-2.9.3-77466dc855-b639e2f5fd.zip → ...-raw-npm-2.10.0-d7cd50f767-c7b1b9c6f7.zip
Binary file not shown.
Binary file renamed
BIN
+8.95 KB
...-wrap-npm-2.9.3-fba22031ec-aede3d82af.zip → ...wrap-npm-2.10.0-4c3ddcc095-fc3163bcb0.zip
Binary file not shown.
Binary file added
BIN
+6.7 KB
.yarn/cache/@parcel-transformer-sass-npm-2.10.0-6c5f188bcc-2d697077ac.zip
Binary file not shown.
Binary file removed
BIN
-6.49 KB
.yarn/cache/@parcel-transformer-sass-npm-2.9.3-234c526ad6-534eb9239f.zip
Binary file not shown.
Binary file renamed
BIN
+10.9 KB
...r-svg-npm-2.9.3-6316a1b4cc-19cec37f9c.zip → ...-svg-npm-2.10.0-881c72cd1f-d5f55f6eee.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+43.2 KB
...rkers-npm-2.9.3-b0559c8ccb-d6ac6e2abf.zip → ...kers-npm-2.10.0-7f8aa5ad5a-e8b1701b53.zip
Binary file not shown.
Binary file renamed
BIN
+13.9 KB
...utils-npm-5.0.4-344c94a032-893d5805ac.zip → ...utils-npm-5.0.5-cfa8fafc53-dcd4d6e3cb.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+110 KB
...ns-tz-npm-1.3.3-4b42de3dcf-52111dffb4.zip → ...ns-tz-npm-2.0.0-9b7996f292-a6553603a9.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+764 KB
...lint-npm-8.49.0-1b802e43a1-4dfe257e1e.zip → ...lint-npm-8.51.0-77fce3ec74-214fa5d1fc.zip
Binary file not shown.
Binary file renamed
BIN
+24.9 KB
...ress-npm-2.14.0-4d90862e1d-3fa118a757.zip → ...ress-npm-2.15.1-90f777d9bd-3e66fa9a94.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+662 KB
...lmdb-npm-2.7.11-464a53df83-44f9c7ea07.zip → .../lmdb-npm-2.8.5-e5fdd937dd-b1ec76650d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+4.41 MB
...e-ui-npm-2.34.4-00b9952d24-0e91d9208e.zip → ...e-ui-npm-2.35.0-2bb3f5a46d-53239b8cbe.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.95 KB
.yarn/cache/node-gyp-build-optional-packages-npm-5.0.6-e687ca7fe8-080656ae27.zip
Binary file not shown.
Binary file added
BIN
+7.19 KB
.yarn/cache/node-gyp-build-optional-packages-npm-5.1.1-ff11e179dd-f3cb197862.zip
Binary file not shown.
Binary file renamed
BIN
+30 KB
...inary-npm-1.4.0-1319bac199-951fecb400.zip → ...inary-npm-1.4.1-9ad6b7c6b5-274940b4ef.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.