Skip to content

Commit

Permalink
ci: merge main to release (#7577)
Browse files Browse the repository at this point in the history
ci: merge main to release
  • Loading branch information
rjsparks authored Jun 21, 2024
2 parents d04e542 + 98879ca commit 79ef179
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-base-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Build & Push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_NO_SUMMARY: true
with:
context: .
file: docker/base.Dockerfile
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-celery-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Build & Push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_NO_SUMMARY: true
with:
context: .
file: dev/celery/Dockerfile
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-mq-broker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Build & Push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_NO_SUMMARY: true
with:
context: .
file: dev/mq/Dockerfile
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Release Docker Image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_NO_SUMMARY: true
with:
context: .
file: dev/build/Dockerfile
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/dev-assets-sync-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Build & Push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_NO_SUMMARY: true
with:
context: .
file: dev/shared-assets-sync/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
path: geckodriver.log

- name: Upload Coverage Results to Codecov
uses: codecov/codecov-action@v4.4.1
uses: codecov/codecov-action@v4.5.0
with:
files: coverage.xml

Expand Down
3 changes: 0 additions & 3 deletions ietf/sync/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ def notify(request, org, notification):
password = request.POST.get("password") or request.GET.get("password")

if username != None and password != None:
if settings.SERVER_MODE == "production" and not request.is_secure():
permission_denied(request, "You must use HTTPS when sending username/password.")

if not user.is_authenticated:
try:
user = User.objects.get(username__iexact=username)
Expand Down
10 changes: 10 additions & 0 deletions k8s/celery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ spec:
mountPath: /a
- name: dt-tmp
mountPath: /tmp
- name: dt-home
mountPath: /home/datatracker
- name: dt-xml2rfc-cache
mountPath: /var/cache/xml2rfc
- name: dt-cfg
mountPath: /workspace/ietf/settings_local.py
subPath: settings_local.py
Expand All @@ -83,6 +87,12 @@ spec:
- name: dt-tmp
emptyDir:
sizeLimit: "2Gi"
- name: dt-xml2rfc-cache
emptyDir:
sizeLimit: "2Gi"
- name: dt-home
emptyDir:
sizeLimit: "2Gi"
- name: dt-cfg
configMap:
name: files-cfgmap
Expand Down
13 changes: 13 additions & 0 deletions k8s/datatracker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,19 @@ spec:
mountPath: /a
- name: dt-tmp
mountPath: /tmp
- name: dt-home
mountPath: /home/datatracker
- name: dt-xml2rfc-cache
mountPath: /var/cache/xml2rfc
- name: dt-cfg
mountPath: /workspace/ietf/settings_local.py
subPath: settings_local.py
env:
- name: "CONTAINER_ROLE"
value: "datatracker"
# ensures the pod gets recreated on every deploy:
- name: "DEPLOY_UID"
value: "$DEPLOY_UID"
envFrom:
- configMapRef:
name: django-config
Expand All @@ -81,6 +88,12 @@ spec:
- name: dt-tmp
emptyDir:
sizeLimit: "2Gi"
- name: dt-xml2rfc-cache
emptyDir:
sizeLimit: "2Gi"
- name: dt-home
emptyDir:
sizeLimit: "2Gi"
- name: dt-cfg
configMap:
name: files-cfgmap
Expand Down
2 changes: 2 additions & 0 deletions k8s/django-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ data:
yeUc2Ykkwemt3U0IKcXZOVStxUldpK1lYcklUc2duOTIvZ1Z4WDVBb0swbitzNUx4
N2ZwanhrQVJWaTY2U0Y2elRKblgKLS0tLS1FTkQgUFJJVkFURSBLRVktLS0tLQo=
#DATATRACKER_REGISTRATION_API_KEY: "some-key" # secret"

# DATATRACKER_MEETECHO_API_BASE: "https://meetings.conf.meetecho.com/api/v1/"
DATATRACKER_MEETECHO_CLIENT_ID: "this-is-the-meetecho-client-id" # secret
DATATRACKER_MEETECHO_CLIENT_SECRET: "this-is-the-meetecho-client-secret" # secret
Expand Down
8 changes: 6 additions & 2 deletions k8s/settings_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ def _multiline_to_list(s):

RFC_EDITOR_NOTIFICATION_URL = "http://www.rfc-editor.org/parser/parser.php"

STATS_REGISTRATION_ATTENDEES_JSON_URL = 'https://registration.ietf.org/{number}/attendees/?apikey=redacted'
_registration_api_key = os.environ.get("DATATRACKER_REGISTRATION_API_KEY", None)
if _registration_api_key is None:
raise RuntimeError("DATATRACKER_REGISTRATION_API_KEY must be set")
STATS_REGISTRATION_ATTENDEES_JSON_URL = f"https://registration.ietf.org/{{number}}/attendees/?apikey={_registration_api_key}"

#FIRST_CUTOFF_DAYS = 12
#SECOND_CUTOFF_DAYS = 12
Expand All @@ -127,7 +130,8 @@ def _multiline_to_list(s):
MEETING_MATERIALS_SUBMISSION_CUTOFF_DAYS = 26
MEETING_MATERIALS_SUBMISSION_CORRECTION_DAYS = 54

HTPASSWD_COMMAND = "/usr/bin/htpasswd2"
# disable htpasswd by setting to a do-nothing command
HTPASSWD_COMMAND = "/bin/true"

_MEETECHO_CLIENT_ID = os.environ.get("DATATRACKER_MEETECHO_CLIENT_ID", None)
_MEETECHO_CLIENT_SECRET = os.environ.get("DATATRACKER_MEETECHO_CLIENT_SECRET", None)
Expand Down

0 comments on commit 79ef179

Please sign in to comment.