Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
87e550c
refactor: compare tokens using compare_digest (#9562)
jennifer-richards Sep 19, 2025
4be83ce
fix: remove deprecated iesg docs view, link from ad dashboard to ad v…
rjsparks Sep 19, 2025
5e1f46d
feat: Distinguish I-Ds on WG plate from I-Ds on IESG plate (#9214)
evyncke Sep 29, 2025
ba8b731
ci: DB persistence for blobdb, too
jennifer-richards Sep 30, 2025
d1cbdcb
chore: fix docker-compose comment (#9679)
jennifer-richards Oct 7, 2025
a8e8b9e
feat: split liaison_statement_posted mailtrigger into outgoing and in…
nouralmaa Oct 7, 2025
8fbbc55
fix: keep day visible in timeslot editor (#9653)
jennifer-richards Oct 7, 2025
24101bb
feat: json snapshots of ipr statements (#9684)
rjsparks Oct 9, 2025
9d2fa7a
feat: track deleted ipr disclosures (#9691)
rjsparks Oct 9, 2025
ed6b061
chore: merge feat/sreq to main (#9697)
rpcross Oct 10, 2025
4961f37
feat: preview ballot email before save (#9646) (#9721)
rjsparks Oct 14, 2025
8f2feef
ci: update build workflow to deploy to dev
NGPixel Oct 14, 2025
5a7be26
chore: add disableDailyDbRefresh flag to build workflow
NGPixel Oct 15, 2025
93c1124
ci: add ruff to devcontainer (#9731)
rjsparks Oct 15, 2025
d5660ab
fix: unbreak EmptyAwareJSONField (#9732)
jennifer-richards Oct 15, 2025
1d2d304
fix: improve proceedings caching/performance (#9733)
jennifer-richards Oct 16, 2025
2cfbaf9
ci: drop caching from build images step (#9738)
jennifer-richards Oct 16, 2025
b0ec8c4
chore: remove unused variables (#9742)
jennifer-richards Oct 17, 2025
62f720c
ci: imagePullPolicy for migration container (#9764)
jennifer-richards Oct 21, 2025
9d7829d
ci: merge release to main (#9768)
rjsparks Oct 21, 2025
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
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"editorconfig.editorconfig",
// Newer volar >=3.0.0 causes crashes in devcontainers
"[email protected]",
"mrmlnc.vscode-duplicate",
"ms-azuretools.vscode-docker",
Expand All @@ -35,7 +34,8 @@
"redhat.vscode-yaml",
"spmeesseman.vscode-taskexplorer",
"visualstudioexptteam.vscodeintellicode",
"ms-python.pylint"
"ms-python.pylint",
"charliermarsh.ruff"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
Expand Down
73 changes: 36 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ on:
- Skip
- Staging Only
- Staging + Prod
sandbox:
description: 'Deploy to Sandbox'
dev:
description: 'Deploy to Dev'
default: true
required: true
type: boolean
sandboxNoDbRefresh:
description: 'Sandbox Disable Daily DB Refresh'
devNoDbRefresh:
description: 'Dev Disable Daily DB Refresh'
default: false
required: true
type: boolean
Expand Down Expand Up @@ -278,8 +278,6 @@ jobs:
tags: |
ghcr.io/ietf-tools/datatracker:${{ env.PKG_VERSION }}
${{ env.FEATURE_LATEST_TAG && format('ghcr.io/ietf-tools/datatracker:{0}-latest', env.FEATURE_LATEST_TAG) || null }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Update CHANGELOG
id: changelog
Expand Down Expand Up @@ -392,44 +390,45 @@ jobs:
value: "Failed"

# -----------------------------------------------------------------
# SANDBOX
# DEV
# -----------------------------------------------------------------
sandbox:
name: Deploy to Sandbox
if: ${{ !failure() && !cancelled() && github.event.inputs.sandbox == 'true' }}
dev:
name: Deploy to Dev
if: ${{ !failure() && !cancelled() && github.event.inputs.dev == 'true' }}
needs: [prepare, release]
runs-on: [self-hosted, dev-server]
runs-on: ubuntu-latest
environment:
name: sandbox
name: dev
env:
PKG_VERSION: ${{needs.prepare.outputs.pkg_version}}

steps:
- uses: actions/checkout@v4

- name: Download a Release Artifact
uses: actions/[email protected]
with:
name: release-${{ env.PKG_VERSION }}

- name: Deploy to containers
env:
DEBIAN_FRONTEND: noninteractive
run: |
echo "Reset production flags in settings.py..."
sed -i -r -e 's/^DEBUG *= *.*$/DEBUG = True/' -e "s/^SERVER_MODE *= *.*\$/SERVER_MODE = 'development'/" ietf/settings.py
echo "Install Deploy to Container CLI dependencies..."
cd dev/deploy-to-container
npm ci
cd ../..
echo "Start Deploy..."
node ./dev/deploy-to-container/cli.js --branch ${{ github.ref_name }} --domain dev.ietf.org --appversion ${{ env.PKG_VERSION }} --commit ${{ github.sha }} --ghrunid ${{ github.run_id }} --nodbrefresh ${{ github.event.inputs.sandboxNoDbRefresh }}

- name: Cleanup old docker resources
env:
DEBIAN_FRONTEND: noninteractive
run: |
docker image prune -a -f
- uses: actions/checkout@v4
with:
ref: main

- name: Get Deploy Name
env:
DEBIAN_FRONTEND: noninteractive
run: |
echo "Install Get Deploy Name CLI dependencies..."
cd dev/k8s-get-deploy-name
npm ci
echo "Get Deploy Name..."
echo "DEPLOY_NAMESPACE=$(node cli.js --branch ${{ github.ref_name }})" >> "$GITHUB_ENV"

- name: Deploy to dev
uses: the-actions-org/workflow-dispatch@v4
with:
workflow: deploy-dev.yml
repo: ietf-tools/infra-k8s
ref: main
token: ${{ secrets.GH_INFRA_K8S_TOKEN }}
inputs: '{ "app":"datatracker", "appVersion":"${{ env.PKG_VERSION }}", "remoteRef":"${{ github.sha }}", "namespace":"${{ env.DEPLOY_NAMESPACE }}", "disableDailyDbRefresh":${{ inputs.devNoDbRefresh }} }'
wait-for-completion: true
wait-for-completion-timeout: 30m
wait-for-completion-interval: 30s
display-workflow-run-url: false

# -----------------------------------------------------------------
# STAGING
Expand Down
7 changes: 7 additions & 0 deletions dev/k8s-get-deploy-name/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[*]
indent_size = 2
indent_style = space
charset = utf-8
trim_trailing_whitespace = false
end_of_line = lf
insert_final_newline = true
1 change: 1 addition & 0 deletions dev/k8s-get-deploy-name/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
3 changes: 3 additions & 0 deletions dev/k8s-get-deploy-name/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
audit = false
fund = false
save-exact = true
16 changes: 16 additions & 0 deletions dev/k8s-get-deploy-name/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Datatracker Get Deploy Name

This tool process and slugify a git branch into an appropriate subdomain name.

## Usage

1. From the `dev/k8s-get-deploy-name` directory, install the dependencies:
```sh
npm install
```
2. Run the command: (replacing the `branch` argument)
```sh
node /cli.js --branch feat/fooBar-123
```

The subdomain name will be output. It can then be used in a workflow as a namespace name and subdomain value.
22 changes: 22 additions & 0 deletions dev/k8s-get-deploy-name/cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env node

import yargs from 'yargs/yargs'
import { hideBin } from 'yargs/helpers'
import slugify from 'slugify'

const argv = yargs(hideBin(process.argv)).argv

let branch = argv.branch
if (!branch) {
throw new Error('Missing --branch argument!')
}
if (branch.indexOf('/') >= 0) {
branch = branch.split('/').slice(1).join('-')
}
branch = slugify(branch, { lower: true, strict: true })
if (branch.length < 1) {
throw new Error('Branch name is empty!')
}
process.stdout.write(`dt-${branch}`)

process.exit(0)
Loading
Loading