Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"ghcr.io/devcontainers/features/terraform:1": {},
"ghcr.io/devcontainers/features/java:1": {
"version": "17",
"jdkDistro": "tem",
"additionalVersions": "21"
"jdkDistro": "tem"
}
},
"mounts": [
Expand Down
17 changes: 1 addition & 16 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
export MINIO_ENDPOINT_URL="http://127.0.0.1:9000"
export MEDIA_BUCKET_NAME="codedang-media"
export TESTCASE_BUCKET_NAME="codedang-testcase"
export CHECK_RESULT_BUCKET_NAME="codedang-plag-checks"
# Although these values are for AWS SDK, using AWS_* variables interrupts AWS CLI loading the default profile.
# So we use MINIO_* variables and map them in the code. (see scripts/init-storage.ts)
export MINIO_ACCESS_KEY_ID="skku"
Expand All @@ -22,24 +21,10 @@ export JUDGE_SUBMISSION_ROUTING_KEY="judge.submission"
export JUDGE_RESULT_QUEUE_NAME="iris.q.judge.result"
export JUDGE_RESULT_ROUTING_KEY="judge.result"

export JUDGE_SUBMISSION_CONSUMER_CONNECTION_NAME="iris-consumer"
export JUDGE_SUBMISSION_TAG="consumer-tag"
export JUDGE_SUBMISSION_PRODUCER_CONNECTION_NAME="iris-producer"

export CHECK_EXCHANGE_NAME="plag.e.direct.check"
export CHECK_QUEUE_NAME="client.q.check.request"
export CHECK_ROUTING_KEY="check.request"
export CHECK_RESULT_QUEUE_NAME="plag.q.check.result"
export CHECK_RESULT_ROUTING_KEY="check.result"

export CHECK_CONSUMER_CONNECTION_NAME="plag-consumer-connection"
export CHECK_PRODUCER_CONNECTION_NAME="plag-producer-connection"
export CHECK_TAG="check-consumer"

### AWS ###
export AWS_PROFILE="skkuding"

### Sandbox (only for devcontainer) ###
if [ "$DEVCONTAINER"="1" ]; then
if [ "$DEVCONTAINER" = "1" ]; then
export CONTAINER_ID=$(head -1 /proc/self/cgroup | cut -d/ -f3 | sed -e 's/docker-\(.*\)\.scope/\1/')
fi
95 changes: 0 additions & 95 deletions .github/workflows/cd-failover-ecs.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/cd-prod-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ jobs:
context: apps/iris
build-args: |
app_env=stage
- target: plag
file: ''
context: apps/plag
build-args: |
app_env=stage

steps:
- name: Setup Docker Buildx
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/cd-stage-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ jobs:
context: apps/iris
build-args: |
app_env=stage
- target: plag
file: ''
context: apps/plag
build-args: |
app_env=stage

steps:
- name: Setup Docker Buildx
Expand Down Expand Up @@ -107,7 +102,6 @@ jobs:
build-args: |
BASEURL=https://stage.codedang.com/api
GQL_BASEURL=https://stage.codedang.com/graphql
ADMIN_REST_URL=https://stage.codedang.com/admin-api
tags: |
ghcr.io/skkuding/codedang-frontend:${{ github.sha }}
ghcr.io/skkuding/codedang-frontend:stage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-unused.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
node: [20]

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-pnpm

- name: Check unused dependencies
Expand Down
38 changes: 5 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
target: [client, admin]

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- name: Check if source code has changed
uses: dorny/paths-filter@v3
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- uses: ./.github/actions/setup-pnpm

Expand All @@ -147,7 +147,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -193,7 +193,6 @@ jobs:
TEST_DATABASE_URL: postgresql://postgres:1234@localhost:5432/skkuding?schema=public
MINIO_ENDPOINT_URL: http://localhost:9000
TESTCASE_BUCKET_NAME: test-bucket
CHECK_RESULT_BUCKET_NAME: codedang-plag-checks
MEDIA_BUCKET_NAME: image-bucket
AWS_ACCESS_KEY_ID: abc123
AWS_SECRET_ACCESS_KEY: xyz123456
Expand Down Expand Up @@ -231,7 +230,7 @@ jobs:
- 6380:6379

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- name: Check if source code has changed
uses: dorny/paths-filter@v3
Expand Down Expand Up @@ -276,7 +275,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- name: Check if source code has changed
uses: dorny/paths-filter@v3
Expand All @@ -298,33 +297,6 @@ jobs:
run: go test ./...
working-directory: ./apps/iris

test-plag:
name: Test Plag
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6

- name: Check if source code has changed
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
plag:
- 'apps/plag/**'

- name: Set up Go
if: steps.filter.outputs.plag == 'true'
uses: actions/setup-go@v5
with:
go-version-file: apps/plag/go.mod
cache-dependency-path: apps/plag/go.sum

- name: Test (Go)
if: steps.filter.outputs.plag == 'true'
run: go test ./...
working-directory: ./apps/plag

# TODO: write smoke test for backend
# e.g) start backend server and check if it responds to requests
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
language: ['javascript']

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compress-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v6
uses: actions/checkout@v4

- name: Compress Images
uses: calibreapp/image-actions@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/legacy/cd-prod-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/legacy/cd-prod-target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
shell: bash
steps:
- name: Checkout Repository
uses: actions/checkout@v6
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
shell: bash
steps:
- name: Checkout Repository
uses: actions/checkout@v6
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/legacy/cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/legacy/cd-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ jobs:
environment: stage
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
sparse-checkout: |
docker-compose.yml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/legacy/rc-acm-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
outputs:
rc_ns_records: ${{ steps.exp-rc-ns.outputs.rc_ns_records }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_FOR_DEPLOY }}
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/legacy/rc-deploy-target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
Loading
Loading