Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pinterest/teletraan
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.0
Choose a base ref
...
head repository: pinterest/teletraan
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 1,084 changed files with 93,706 additions and 53,471 deletions.
5 changes: 5 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# .git-blame-ignore-revs
# Format all java code (#1684)
26186160fca06439b7baacba318cc3f42993b9eb
# Format deploy-agent code (#1776)
565a18c7a83eb1613bfef51f68cd74b0d45acce5
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @pinterest/teletraan
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
8 changes: 8 additions & 0 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "CodeQL config"

paths-ignore:
- '**/tests/**'
- '**/test/**'
- '**/integ_test/**'
- 'deploy-board/deploy_board/static/**'
- 'deploy-board/deploy_board/templates/**'
12 changes: 12 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
deploy-agent:
- changed-files:
- any-glob-to-any-file: deploy-agent/**
deploy-board:
- changed-files:
- any-glob-to-any-file: deploy-board/**
deploy-sentinel:
- changed-files:
- any-glob-to-any-file: deploy-sentinel/**
deploy-service:
- changed-files:
- any-glob-to-any-file: deploy-service/**
60 changes: 60 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "CodeQL"

on:
push:
branches: [ master, codeql ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
paths-ignore:
- 'docs/**'
- '**/*.md'
- '**/tests/**'
- '**/test/**'
- '**/integ_test/**'


jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'java', 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql-config.yml

- if: matrix.language == 'python'
name: Autobuild
uses: github/codeql-action/autobuild@v3

- if: matrix.language == 'java'
name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 8
cache: 'maven'
- if: matrix.language == 'java'
name: Build with Maven
working-directory: deploy-service
run: |
mvn clean package --file pom.xml -P-pinterest-dependenies,exclude-pinterest-only-classes -B -V -e -Dfindbugs.skip -Dcheckstyle.skip -Dpmd.skip=true -Dspotbugs.skip -Denforcer.skip -Dmaven.javadoc.skip -DskipTests -Dmaven.test.skip.exec -Dlicense.skip=true -Drat.skip=true -Dspotless.check.skip=true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Pull Request Labeler"

on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
33 changes: 33 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Java CI

on:
push:
branches:
- master
paths:
- 'deploy-service/**'
- '.github/workflows/maven.yml'
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 8
cache: 'maven'
- name: Build with Maven
working-directory: deploy-service
run: |
mvn clean package --file pom.xml -P-pinterest-dependenies,exclude-pinterest-only-classes
- name: Build with Maven
working-directory: deploy-service
run: |
mvn spotless:check --file pom.xml
16 changes: 16 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pre-commit

on:
pull_request:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.1
with:
extra_args: --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
39 changes: 39 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy Agent CI

on:
push:
paths:
'deploy-agent/**'
branches:
- master
pull_request:
paths:
'deploy-agent/**'
branches:
- master


defaults:
run:
shell: bash
working-directory: ./deploy-agent

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.12]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Tests
run: |
tox -v
33 changes: 31 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -6,11 +6,27 @@ deploy-service/teletraanservice/teletraan/
.idea/
*.iml

# vim
*.swp

# VSCode
.vscode/
deploy-service/common/.settings/
deploy-service/.settings/
deploy-service/common/.*
deploy-service/teletraanservice/.settings/
deploy-service/teletraanservice/.*
docs/docs_generator/.settings/


# C extensions
*.so

# vim
*.swp
# tar
*.tar.gz

# log
*.log

# Ignore dirs
build_id.properties
@@ -19,6 +35,8 @@ loadtests/local
target/
dist/
docs/_build/
docs/docs_generator/.gradle
.settings/

# Vagrant
.bundle
@@ -55,3 +73,14 @@ junit-py27.xml
.project
.pydevproject
.DS_Store

# PIP stuff
MANIFEST

# Virtual Environments
.venv
docs/docs_generator/bin/

# Bazel
bazel-*
MODULE.bazel*
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.6
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/djlint/djLint
rev: v1.34.1
hooks:
- id: djlint-django
args: ["--ignore=D004,D018,H006,H013,H014,H019,H021,H023,H025,H026,H031,T001,T002,T003"]
10 changes: 10 additions & 0 deletions .spr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
requireChecks: true
requireApproval: true
githubHost: github.com
githubRepoOwner: pinterest
githubRepoName: teletraan
githubRemote: origin
githubBranch: master
mergeMethod: squash
mergeQueue: false
forceFetchTags: false
11 changes: 10 additions & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
@@ -5,4 +5,13 @@ Contributors
* Jinru He <jihe@pinterest.com>
* Nick DeChant <nickd@pinterest.com>
* Linda Lo <lo@pinterest.com>
* Suman Karumuri <skarumuri@pinterest.com>
* Suman Karumuri <skarumuri@pinterest.com>
* Lida Li <lidali@pinterest.com>
* Ming Hao <haom@pinterest.com>
* Suli Xu <suli@pinterest.com>
* Saurabh Joshi <sjoshi@pinterest.com>
* Yongwen Xu <yongwen@pinterest.com>
* Anh Nguyen <anhn@pinterest.com>
* Yaqin Li <yaqinli@pinterest.com>
* Khoi Nguyen <khoinguyen@pinterest.com>
* Ian Roquebert <iroquebert@pinterest.com>
Loading