Skip to content

Restrict challenge management GET endpoints to hosts/creators#5006

Open
Youssef-SH wants to merge 1 commit into
Cloud-CV:masterfrom
Youssef-SH:fix-restrict-challenge-management-get-access
Open

Restrict challenge management GET endpoints to hosts/creators#5006
Youssef-SH wants to merge 1 commit into
Cloud-CV:masterfrom
Youssef-SH:fix-restrict-challenge-management-get-access

Restrict challenge management GET endpoints to hosts/creators

a3ab13f
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Feb 10, 2026 in 21m 5s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #5006 Restrict challenge management GET endpoints to hosts/creators.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has two jobs, running in two sequential stages.

Stage 1: Build, Test & Check Code Quality

This stage passed.

Job Python ENV OS State
20776.1 Build, Test & Check Code Quality 3.9.21 COMPOSE_BAKE=true Linux passed

Stage 2: Package & Deployment

This stage passed.

Job Python ENV OS State
20776.2 Push & Deploy Services 3.9.21 COMPOSE_BAKE=true Linux passed

Build Configuration

Build Option Setting
Language Python
Operating System Linux (Focal)
Python Version 3.9.21
Build Configuration
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "sudo": true,
  "virt": "vm",
  "services": [
    "docker",
    "xvfb"
  ],
  "python": [
    "3.9.21"
  ],
  "cache": {
    "directories": [
      "$HOME/.cache/pip"
    ]
  },
  "env": [
    "global={:COMPOSE_BAKE=>\"true\"}={:COMPOSE_BAKE_ARGS=>\"\\\"--build-arg PIP_NO_CACHE_DIR=1\\\"\"}={:DOCKER_BUILDKIT=>\"1\"}"
  ],
  "before_install": [
    "sudo rm -f /etc/boto.cfg",
    "export CHROME_BIN=chromium-browser",
    "export DISPLAY=:99.0",
    "pip install --upgrade pip",
    "mkdir -p $HOME/.config/pip",
    "echo \"[build_ext]\" > $HOME/.config/pip/pip.conf",
    "echo \"parallel = 1\" >> $HOME/.config/pip/pip.conf",
    "ulimit -u 16384",
    "ulimit -n 4096"
  ],
  "install": [
    "pip install awscli==1.18.66"
  ],
  "jobs": {
    "fast_finish": true,
    "include": [
      {
        "stage": "Build, Test & Check Code Quality",
        "name": "Build, Test & Check Code Quality",
        "script": [
          "if [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then echo \"$DOCKER_PASSWORD\" | docker login -u \"$DOCKER_USERNAME\" --password-stdin || travis_terminate 1; fi",
          "docker-compose --profile worker_py3_7 --profile worker_py3_8 --profile worker_py3_9 --profile statsd build || travis_terminate 1;",
          "docker-compose run nodejs bash -c '\n  set -e\n  echo \"=== Installing dependencies ===\"\n  npm install\n  echo \"=== Building frontend (dev) ===\"\n  gulp dev\n  echo \"=== Running frontend tests ===\"\n  mkdir -p coverage/frontend\n  karma start --single-run --reporters=junit,coverage\n  echo \"=== Frontend tests passed ===\"\n  # Cleanup browser processes (ignore errors if not found)\n  pkill -f chrome 2>/dev/null || true\n  pkill -f chromium 2>/dev/null || true\n  echo \"=== Building frontend (staging) ===\"\n  gulp staging\n  echo \"=== Frontend build complete ===\"\n' || travis_terminate 1;\n",
          "docker-compose run -e DJANGO_SETTINGS_MODULE=settings.test django bash -c '\n  set -e\n  echo \"=== Flushing database ===\"\n  python manage.py flush --noinput\n  echo \"=== Running backend tests with coverage ===\"\n  pytest --cov . --cov-config .coveragerc --cov-report=xml:coverage-backend.xml --junitxml=junit-backend.xml -o junit_family=legacy\n  echo \"=== Backend tests passed ===\"\n' || travis_terminate 1;\n",
          "docker-compose run -e DJANGO_SETTINGS_MODULE=settings.dev -e VERBOSE=1 django bash -c '\n  set -e\n  echo \"=== Installing code quality tools ===\"\n  pip install black==24.8.0 flake8==3.8.2 pylint==3.3.6 isort==5.12.0\n  echo \"=== Running black check ===\"\n  black --check --diff ./\n  echo \"=== Running isort check ===\"\n  isort --check-only --diff --profile=black ./\n  echo \"=== Running flake8 check ===\"\n  flake8 --config=.flake8 ./\n  echo \"=== Running pylint check ===\"\n  pylint --rcfile=.pylintrc --output-format=colorized --score=y --fail-under=7.5 ./\n  echo \"=== All code quality checks passed ===\"\n' || travis_terminate 1;\n"
        ],
        "after_success": [
          "pip install codecov-cli",
          "codecovcli do-upload --report-type test_results --file junit-backend.xml",
          "codecovcli do-upload --report-type test_results --file coverage/frontend/TEST-*.xml || true",
          "bash <(curl -s https://codecov.io/bash) -f coverage-backend.xml -F backend",
          "bash <(curl -s https://codecov.io/bash) -f coverage/frontend/lcov.info -F frontend"
        ]
      },
      {
        "stage": "Package & Deployment",
        "name": "Push & Deploy Services",
        "script": [
          "eval \"$(ssh-agent -s)\"",
          "openssl aes-256-cbc -K $encrypted_77d2d82026f6_key -iv $encrypted_77d2d82026f6_iv -in scripts/deployment/evalai.pem.enc -out scripts/deployment/evalai.pem -d || true",
          "./scripts/deployment/push.sh || travis_terminate 1;",
          "./scripts/deployment/deploy.sh auto_deploy || travis_terminate 1;"
        ]
      }
    ]
  },
  "before_cache": [
    "rm -f $HOME/.cache/pip/log/debug.log"
  ],
  "notifications": {
    "email": [
      {
        "on_success": "change",
        "on_failure": "always"
      }
    ],
    "slack": [
      {
        "rooms": [
          "cloudcv:gy3CGQGNXLwXOqVyzXGZfdea"
        ]
      }
    ]
  }
}