Skip to content

Merge master with develop #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
15cbb49
CE-337 Creation and updation of 'develop' branch with latest codebase…
ayesharustgi-delphix May 25, 2023
b5142d4
CE-235 Enable CodeQL on Couchbase Repository (#45)
ayesharustgi-delphix May 25, 2023
2229226
CE-341 Fix codeQL (#46)
ayesharustgi-delphix May 25, 2023
83f6ca3
CE-340 Code changes to mask password in "ps" using expect utility (#47)
ayesharustgi-delphix May 26, 2023
aa6f426
CE-352 Remove docs from development branches (#51)
ayesharustgi-delphix May 26, 2023
cdb90cf
CE-506 Code changes to handle prompt changes in cluster-init (#52)
ayesharustgi-delphix Jul 28, 2023
77ab707
CE-517 Couchbase Plugin : Multinode VDB creation fails with password …
ayesharustgi-delphix Aug 3, 2023
ccf34b4
CE-477 Couchbase Version 7.1.3 Support (#54)
ayesharustgi-delphix Sep 20, 2023
56dba3e
CE-554 Implement precommit checks in couchbase repo (#56)
ayesharustgi-delphix Oct 5, 2023
a5aceac
CE-325 Record ZFS Storage Calculation Command (Couchbase) (#58)
satishk1536 Oct 11, 2023
f29b0fd
CE-572 Retry bucket creation if failed (#59)
satishk1536 Oct 26, 2023
7ae6d65
CE-540 bucket size control implementation (#57)
ayesharustgi-delphix Oct 27, 2023
d954362
CE-541 Ingestion from multiple full backups (#60)
ayesharustgi-delphix Oct 27, 2023
38047a3
CE-575 Fix Python error when raising an Exception with traceback. (#62)
satishk1536 Oct 31, 2023
280fbb9
CE-577 Couchbase 1.30 >> Ingestion from multiple full backups >> Virt…
satishk1536 Nov 1, 2023
b25c79c
CE-578 Couchbase 1.30 >> bucket size control implementation >> Bucket…
satishk1536 Nov 3, 2023
f36c9d9
CE-574 Upgrade Logic (#61)
ayesharustgi-delphix Nov 3, 2023
0349fd3
CE-579 Couchbase 1.30 >> Upgrade Logic >> KeyError while upgrading pl…
satishk1536 Nov 3, 2023
012b26a
CE-633 Couchbase Plugin: Dsource sizing not working due to filesystem…
ayesharustgi-delphix Feb 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[flake8]
ignore =
# Module level import not at top of file
E402
# Whitespace before ':'; Removed per Black documentation
E203
# Invalid escape sequence
W605
# Python3.7+ compatibility checks
W606
# Ambiguous variable name l
E741
# Line break occurred before a binary operator
W503
# Missing docstring in public module
D100
# Missing docstring in public class
D101
# Missing docstring in public method
D102
# Missing docstring in public function
D103
# Missing docstring in public package
D104
# Missing docstring in magic method
D105
# Missing docstring in __init__
D107
# One-line docstring should fit on one line with quotes
D200
# No blank lines allowed after function docstring
D202
# 1 blank line required between summary line and description
D205
# First line should end with a period
D400
# First line should be in imperative mood
D401
max-line-length = 79
max-complexity = 18
select = B,C,D,E,F,W,T4,B9
extend-ignore = E203
74 changes: 74 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "master", "develop" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master", "develop" ]

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

strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
18 changes: 18 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# Copyright (c) 2022 by Delphix. All rights reserved.
#

[settings]
default_section=THIRDPARTY

extra_standard_library=posixpath,ntpath,Queue

# Every import should try its best to be on one line
force_single_line=True

# Settings needed to be compatible with black
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=79
40 changes: 40 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
exclude: >
(?x)^(
)$
args: [--line-length=79]
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
exclude: >
(?x)^(
)$
- repo: local
hooks:
- id: copyright
name: copyright
entry: copyright.sh
language: script
types: [text]
exclude: >
(?x)^(
.flake8|
.pre-commit-config.yaml|
pyproject.toml|
schema.json|
.*__init__.py|
src/templates/service_file_template.txt|
src/config/logger_conf.ini|
README.md|
.github/workflows/codeql.yml|
.github/CODEOWNERS|
.isort.cfg|
LICENSE|
.gitignore|
plugin_config.yml
)$
23 changes: 23 additions & 0 deletions copyright.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
#
# Copyright (c) 2022, 2023 by Delphix. All rights reserved.
#

function verify_copyright() {
file=$1
current_year=$(date +%Y)
if [[ $(grep -e "Copyright (c).*$current_year .*Delphix. All rights reserved." "$file") ]] ; then
return 0
else
echo "Copyright check failed for file: $file"
return 1
fi

}

code=0
for file in "$@" ; do
verify_copyright "$file"
code=$(($? + $code))
done
exit $code
4 changes: 0 additions & 4 deletions docs/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions docs/.pages

This file was deleted.

15 changes: 0 additions & 15 deletions docs/Pipfile

This file was deleted.

7 changes: 0 additions & 7 deletions docs/docs/.pages

This file was deleted.

79 changes: 0 additions & 79 deletions docs/docs/Discovery.md

This file was deleted.

39 changes: 0 additions & 39 deletions docs/docs/Installation.md

This file was deleted.

Loading