Community board archiving
Due to the recent open-sourcing of Codecov’s repositories and the push to increase transparency with our users, the Codecov team has decided to deprecate the community boards and set it to an archival status. We will be using our feedback repository to collect any and all support questions.
We intend to deprecate the boards on October 31, 2023. We will continue to monitor and respond to any topics opened on this forum until that time.
Before submitting a topic, please confirm the following
I have read the Community board archiving section above.
I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml
configuration file.
I have filled out the below sections to the best of my ability.
I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.
Description
I am following Bitbucket Tutorial to get some initial works with my self-hosted Codecov
While Codecov do PR comment to my bitbucket PR, all the Codecov redirect links are pointing to https://app.codecov.io instead of my Codecov URL
CI/CD URL
Please provide a link to the CI/CD run: Bitbucket
My PR: Bitbucket
Codecov YAML
Allow me to hide the credentials
setup:
# Replace with the http location of your Codecov
# https://docs.codecov.io/docs/configuration#section-codecov-url
codecov_url: https://6c9b-103-199-7-158.ngrok-free.app
codecov_api_url: https://6c9b-103-199-7-158.ngrok-free.app # this defaults to <codecov-url> and is designed to work out of the box like this
#api_allowed_hosts: [] # this defaults to <codecov-url> and is designed to work out of the box like this
# Replace with your Codecov Enterprise License key. This is required for the containers to function.
# https://docs.codecov.io/docs/configuration#section-enterprise-license
enterprise_license: "KvXRlRID5+6baRik39zG47kUkH1zsLJypn4hCViTZDPpXYB4eFlH4oOKA2izGjfphj/rzeQGfJwUOEgmVxpAaNfiAB2O5B64eBBMzaH9VLzdUOsFdkHQB7aQpOGr540WcuayZJzmENdmOiAGO/+kpygcgfN+CeLJELxEB2vqVUbxPJPO6K+lXaKFVLog07ovdK0RiXS26tiXI1OCTzEOsg=="
# https://docs.codecov.com/docs/configuration#instance-wide-admins
admins:
- service: bitbucket
username: congminhtrinh13101999@gmail.com
# Replace with a random string
# https://docs.codecov.io/docs/configuration#section-cookie-secret
http:
cookie_secret: "some-random-string"
timeseries:
enabled: true
bitbucket:
client_id: "<client_id>"
client_secret: "<client_secret>"
services:
redis_url: "redis://redis:6379"
database_url: "postgres://postgres:testpassword@postgres:5432/postgres"
timeseries_database_url: "postgres://postgres:testpassword@timescale:5432/postgres"
minio:
host: s3.amazonaws.com or storage.googleapis.com if using GCS
bucket: <bucket-name>
region: <bucket-region>
verify_ssl: true
port: 443
access_key_id: <aws-iam-access-key> # or <gcs-hmac-key> if using GCS
secret_access_key: <aws-iam-secret> # or <gcs-hmac-secret> if using GCS
iam_auth: <boolean, default false> # set to true in AWS to attempt to authenticate via Instance role
Codecov Docker Compose
version: "3"
services:
gateway:
image: codecov/enterprise-gateway:latest-stable #note: this is for setup purposes only, be sure to pin to the latest release from our changelog: https://docs.codecov.io/changelog
volumes:
- ./config:/config
#- ${CODECOV_SSL_CERT-/cert/codecov.crt}:/etc/codecov/ssl/certs/cert.crt:ro # uncomment if using ssl
ports:
- "${CODECOV_PORT-8080}:8080"
#- "${CODECOV_SSL_PORT-8443}:8443" # uncomment if using ssl
environment:
- CODECOV_GATEWAY_MINIO_ENABLED=true
#- CODECOV_GATEWAY_SSL_ENABLED=true # uncomment if using ssl
networks:
- codecov
depends_on:
- api
- frontend
frontend:
image: codecov/enterprise-frontend:latest-stable #note: this is for setup purposes only, be sure to pin to the latest release from our changelog: https://docs.codecov.io/changelog
environment:
- CODECOV_BASE_HOST=6c9b-103-199-7-158.ngrok-free.app
- CODECOV_API_HOST=6c9b-103-199-7-158.ngrok-free.app
- CODECOV_IA_HOST=6c9b-103-199-7-158.ngrok-free.app
- CODECOV_SCHEME=https
volumes:
- ./config:/config
# ports:
# - "8080"
networks:
- codecov
api:
image: codecov/enterprise-api:latest-stable #note: this is for setup purposes only, be sure to pin to the latest release from our changelog: https://docs.codecov.io/changelog
# build: # uncomment if on a mac
# dockerfile: ./m1-build-fix/Dockerfile
# context: .
volumes:
- ./config:/config
networks:
- codecov
depends_on:
# - minio
- timescale
- postgres
- redis
worker:
image: codecov/enterprise-worker:latest-stable #note: this is for setup purposes only, be sure to pin to the latest release from our changelog: https://docs.codecov.io/changelog
command: worker
volumes:
- ./config:/config
- archive-volume:/archive
networks:
- codecov
depends_on:
# - minio
- redis
- postgres
- timescale
redis:
image: redis:6-alpine
volumes:
- redis-volume:/data
networks:
- codecov
postgres:
image: postgres:14-alpine
environment:
- POSTGRES_PASSWORD=testpassword
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
volumes:
- postgres-volume:/var/lib/postgresql/data
ports:
- "9432:5432"
networks:
- codecov
timescale:
image: timescale/timescaledb-ha:pg14-latest
environment:
- POSTGRES_PASSWORD=testpassword
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
volumes:
- timescale-volume:/var/lib/postgresql/data
ports:
- "8432:5432"
networks:
- codecov
# minio:
# image: minio/minio:RELEASE.2020-04-15T00-39-01Z
# command: server /export
# ports:
# - "${CODECOV_MINIO_PORT-9000}:9000"
# environment:
# - MINIO_ACCESS_KEY=codecov-default-key
# - MINIO_SECRET_KEY=codecov-default-secret
# volumes:
# - archive-volume:/export
# networks:
# - codecov
volumes:
postgres-volume:
timescale-volume:
redis-volume:
archive-volume:
networks:
codecov:
driver: bridge
Codecov Output
Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.
+ ./codecov -u https://6c9b-103-199-7-158.ngrok-free.app
[2023-08-18T03:01:55.784Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.6.2
[2023-08-18T03:01:55.810Z] ['info'] => Project root located at: /opt/atlassian/pipelines/agent/build
[2023-08-18T03:01:55.812Z] ['info'] -> Token found by environment variables
[2023-08-18T03:01:55.813Z] ['info'] -> Token set by environment variables
[2023-08-18T03:01:55.977Z] ['info'] Running coverage xml...
[2023-08-18T03:01:56.111Z] ['info'] Searching for coverage files...
[2023-08-18T03:01:56.168Z] ['info'] Warning: Some files located via search were excluded from upload.
[2023-08-18T03:01:56.168Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2023-08-18T03:01:56.168Z] ['info'] => Found 1 possible coverage files:
coverage.xml
[2023-08-18T03:01:56.168Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/coverage.xml...
[2023-08-18T03:01:56.170Z] ['info'] Detected Bitbucket as the CI provider.
[2023-08-18T03:01:56.171Z] ['info'] Pinging Codecov: https://6c9b-103-199-7-158.ngrok-free.app/upload/v4?package=uploader-0.6.2&token=*******&branch=step3&build=31&build_url=&commit=12f2476350b012b403309361cbf5571593710c2c&job=31&pr=&service=bitbucket&slug=congminhtrinh13101999%2Fcodecov-demo&name=&tag=&flags=&parent=
[2023-08-18T03:01:56.957Z] ['info'] https://6c9b-103-199-7-158.ngrok-free.app/bitbucket/congminhtrinh13101999/codecov-demo/commit/12f2476350b012b403309361cbf5571593710c2c
https://codecov-storage-minh.s3.us-east-2.amazonaws.com/v4/raw/2023-08-18/CAF09B70A650D9860B7D39ED1F36BDC0/12f2476350b012b403309361cbf5571593710c2c/244907b2-21f5-498c-821a-d7d322146213.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA3Y3NSZQJ3ABRXOML%2F20230818%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Date=20230818T030157Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ac84b66c3cd51eee733399ff2fe64251d353ebff1b496a4ce0d3c8d68d7c76f8
[2023-08-18T03:01:56.958Z] ['info'] Uploading...
[2023-08-18T03:01:57.220Z] ['info'] {"status":"success","resultURL":"https://6c9b-103-199-7-158.ngrok-free.app/bitbucket/congminhtrinh13101999/codecov-demo/commit/12f2476350b012b403309361cbf5571593710c2c"}
Expected Results
The links in Codecov PR comment should be my Codecov URL
Actual Results
The links in Codecov PR comment are pointing to https://app.codecov.io
Please let me know if I should provide further information
Thanks,
Minh