Skip to content

Add dynamic OG/Twitter Card meta tags for challenge sharing using ngMeta#5051

Open
jaideepj2004 wants to merge 1 commit into
Cloud-CV:masterfrom
jaideepj2004:add-og-tags-ngmeta-3297
Open

Add dynamic OG/Twitter Card meta tags for challenge sharing using ngMeta#5051
jaideepj2004 wants to merge 1 commit into
Cloud-CV:masterfrom
jaideepj2004:add-og-tags-ngmeta-3297

Add dynamic OG/Twitter meta tags for challenge sharing using ngMeta

521d0c7
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request required action Mar 3, 2026 in 3m 34s

Build Errored

The build errored. This is a change from the previous build, which passed.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #5051 Add dynamic OG/Twitter Card meta tags for challenge sharing using ngMeta.
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 errored.

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

Stage 2: Package & Deployment

This stage canceled.

Job Python ENV OS State
21072.2 Push & Deploy Services 3.9.21 COMPOSE_BAKE=true Linux canceled

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",
    "docker --version",
    "if ! docker compose version; then\n  echo \"Docker Compose v2 plugin is missing\"\n  exit 1\nfi\n",
    "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 build || travis_terminate 1;",
          "docker compose run nodejs bash -c '\n  set -e\n  echo \"=== Installing dependencies ===\"\n  npm install\n  export SASS_SILENCE_DEPRECATIONS=legacy-js-api,import\n  echo \"=== Building frontend (dev) ===\"\n  gulp dev\n  echo \"=== Running frontend tests ===\"\n  mkdir -p coverage/frontend\n  karma_result=0\n  timeout 300 karma start --single-run --reporters=brief,junit,coverage || karma_result=$?\n  pkill -f chrome 2>/dev/null || true\n  pkill -f chromium 2>/dev/null || true\n  sleep 3\n  junit_status=2\n  junit_file=$(find coverage/frontend -name \"TEST-frontend.xml\" -type f 2>/dev/null | head -n 1 || true)\n  if [ -n \"$junit_file\" ]; then\n    if grep -Eq \"failures=\\\"0\\\"\" \"$junit_file\" && grep -Eq \"errors=\\\"0\\\"\" \"$junit_file\"; then\n      junit_status=0\n    else\n      junit_status=1\n    fi\n  fi\n  if [ $junit_status -eq 0 ]; then\n    echo \"=== Frontend tests passed ===\"\n  elif [ $junit_status -eq 1 ]; then\n    echo \"=== Frontend tests failed ===\"\n    exit 1\n  elif [ $karma_result -eq 124 ] && [ -f coverage/frontend/lcov.info ]; then\n    echo \"=== Frontend tests passed (karma timed out after completion) ===\"\n  elif [ $karma_result -eq 0 ]; then\n    echo \"=== Frontend tests passed ===\"\n  else\n    echo \"=== Frontend tests failed ===\"\n    exit 1\n  fi\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"
        ]
      }
    ]
  }
}