Skip to content

Commit 25520fe

Browse files
authored
chore(ci): Setup CI/CD pipeline (#9)
* chore(ci): Setup CI/CD pipeline * chore(ci-cd): Add repo-metadata and noxfile * chore: Fix PR review checks * chore: Fix the header-checks * chore:Fix the docs check * chore:fix docs checks on index.rst * chore:fix the 'changelog' that doesn't have a title: * docs:update formatting * ci:Update the minor locations of the file * ci:fixing failed checks * ci:fix changelog error * ci:fix changelog error * ci:fixing docs by adding API Reference * ci:added cloud build triggers * ci:fix the failing checks * ci:fix failed checks * ci:update _SPANNER_INSTANCE_ID * ci:Added pytest cov dependency * ci:updated pyproject.toml with test dependencies * ci:update the test reqt args and entrypoint * ci:updated the extra packages for the pytest dependencies * ci:fixing integration cloud build dependencies * ci:fix lint check * ci:updated the googleGenAI model version * ci:added env variable for GOOGLE_API_KEY * ci:fix the test cases * ci:fix lint issues * ci:adds secret in the secret manager * test:comment PG store test * test:update cleanup policy * ci:fix the lint format * lint:fix isort checks * test:running only retriever test * test:fix google.api_core.exceptions.FailedPrecondition * test:fix duplicate graph issues * test:fix the cleanup of graph store * test:fixing time out issues * test:adding parallel workers to run test * test:trying with 4 workers * test:try at 6 workers * test:revert to auto workers * test:fix the graph store cleanup
1 parent 4a933d2 commit 25520fe

34 files changed

+1008
-4507
lines changed

.coveragerc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[run]
2+
branch = true
3+
omit =
4+
*/__init__.py
5+
6+
[report]
7+
show_missing = true
8+
fail_under = 81

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# For syntax help see:
44
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
55

6-
* @googleapis/senseai-eco @googleapis/llama-index-spanner
6+
* @googleapis/llama-index-spanner

.github/CONTRIBUTING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# How to Contribute
2+
3+
We'd love to accept your patches and contributions to this project. There are
4+
just a few small guidelines you need to follow.
5+
6+
## Contributor License Agreement
7+
8+
Contributions to this project must be accompanied by a Contributor License
9+
Agreement. You (or your employer) retain the copyright to your contribution;
10+
this simply gives us permission to use and redistribute your contributions as
11+
part of the project. Head over to <https://cla.developers.google.com/> to see
12+
your current agreements on file or to sign a new one.
13+
14+
You generally only need to submit a CLA once, so if you've already submitted one
15+
(even if it was for a different project), you probably don't need to do it
16+
again.
17+
18+
## Code reviews
19+
20+
All submissions, including submissions by project members, require review. We
21+
use GitHub pull requests for this purpose. Consult
22+
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
23+
information on using pull requests.
24+
25+
## Community Guidelines
26+
27+
This project follows [Google's Open Source Community
28+
Guidelines](https://opensource.google.com/conduct/).

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Bug report
2+
name: 🐞 Bug Report
33
about: Create a report to help us improve
44

55
---
@@ -11,20 +11,33 @@ Thanks for stopping by to let us know something could be better!
1111
Please run down the following list and make sure you've tried the usual "quick fixes":
1212

1313
- Search the issues already opened: https://github.com/googleapis/llama-index-spanner-python/issues
14+
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
1415

1516
If you are still having issues, please be sure to include as much information as possible:
1617

1718
#### Environment details
1819

19-
- OS:
20-
- Language version:
21-
- Package/Project management version:
20+
- OS type and version:
21+
- Python version: `python --version`
22+
- pip version: `pip --version`
23+
- `llama-index-spanner-python` version: `pip show llama-index-spanner-python`
2224

2325
#### Steps to reproduce
2426

2527
1. ?
2628
2. ?
2729

30+
#### Code example
31+
32+
```python
33+
# example
34+
```
35+
36+
#### Stack trace
37+
```
38+
# example
39+
```
40+
2841
Making sure to follow these steps will guarantee the quickest resolution possible.
2942

3043
Thanks!

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Feature request
2+
name: Feature Request
33
about: Suggest an idea for this library
44

55
---

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
2-
- [ ] Make sure to open an issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
2+
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/llama-index-spanner-python/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
33
- [ ] Follow the [Samples Style Guide](https://googlecloudplatform.github.io/samples-style-guide/)
44
- [ ] Ensure the tests and linter pass
5+
- [ ] Code coverage does not decrease (if any source code was changed)
56
- [ ] Communicate test infrastructure changes, i.e. API enablement, secrets
67
- [ ] Appropriate docs were updated (if necessary)
78

.github/blunderbuss.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
assign_issues:
16+
- googleapis/llama-index-spanner
17+
assign_prs:
18+
- googleapis/llama-index-spanner

.github/header-checker-lint.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Copyright 2024 Google LLC
1+
# Copyright 2025 Google LLC
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# Licensed under the Apache License, Version 2.0 (the 'License');
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
66
#
77
# http://www.apache.org/licenses/LICENSE-2.0
88
#
99
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# distributed under the License is distributed on an 'AS IS' BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
@@ -25,13 +25,17 @@ sourceFileExtensions:
2525
- 'yaml'
2626
- 'yml'
2727
- 'sh'
28-
- 'ts'
29-
- 'js'
30-
- 'java'
3128
- 'py'
32-
- 'html'
33-
- 'txt'
3429
- 'Dockerfile'
35-
- 'go'
36-
- 'tf'
37-
- 'proto'
30+
- 'proto'
31+
- 'text'
32+
ignoreFiles:
33+
- '.github/blunderbuss.yml'
34+
- '.github/release-please.yml'
35+
- '.github/release-trigger.yml'
36+
- '.github/header-checker-lint.yml'
37+
- '.github/sync-repo-settings.yaml'
38+
- '.github/workflows/docs.yml'
39+
- '.kokoro/**'
40+
- '**/requirements.txt'
41+
- '**/requirements-test.txt'

.github/renovate.json5

Lines changed: 6 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -29,7 +29,9 @@
2929
":prNotPending", // https://docs.renovatebot.com/presets-default/#prnotpending
3030
":prHourlyLimitNone", // https://docs.renovatebot.com/presets-default/#prhourlylimitnone
3131
"docker:enableMajor", // https://docs.renovatebot.com/presets-docker/#dockerenablemajor
32+
":preserveSemverRanges",
3233
],
34+
"ignorePaths": [".kokoro/**"],
3335

3436
// Synchronized with a 2 week sprint cycle and outside business hours.
3537
// https://docs.renovatebot.com/configuration-options/#schedule
@@ -69,80 +71,22 @@
6971
"matchUpdateTypes": ["major"],
7072
"addLabels": ["semver: major"],
7173
},
72-
73-
// Language-specific behaviors.
74-
{
75-
"matchLanguages": ["go"],
76-
"postUpdateOptions": ["gomodTidy"],
77-
},
78-
79-
// Tooling & Runtime behaviors.
80-
{
81-
// Covers Dockerfiles, cloudbuild.yaml, and other docker-based tools.
82-
"groupName": "Docker Runtimes",
83-
"matchDatasources": ["docker"],
84-
// TODO: Uncomment if your Dockerfiles are not included in samples.
85-
// Increases build repeatability, image cache use, and supply chain security.
86-
// "pinDigests": true,
87-
},
8874
{
8975
"groupName": "GitHub Actions",
9076
"matchManagers": ["github-actions"],
9177
"pinDigests": true,
9278
},
9379

94-
// Language groupings.
95-
// These are separated to facilitate PR review by single-language experts.
80+
// Python-specific behaviors.
9681
{
97-
"groupName": "go-nonmajor",
98-
"matchLanguages": ["go"],
99-
"matchUpdateTypes": ["minor", "patch"],
82+
"matchPackageNames": ["pytest"],
83+
"matchUpdateTypes": ["minor", "major"]
10084
},
10185
{
10286
"groupName": "python-nonmajor",
10387
"matchLanguages": ["python"],
10488
"matchUpdateTypes": ["minor", "patch"],
10589
},
106-
{
107-
"groupName": "java-nonmajor",
108-
"matchLanguages": ["java"],
109-
"matchUpdateTypes": ["minor", "patch"],
110-
},
111-
{
112-
"groupName": "js-nonmajor",
113-
"matchLanguages": ["js"],
114-
"matchUpdateTypes": ["minor", "patch"],
115-
},
116-
{
117-
"groupName": "nodejs-nonmajor",
118-
"matchLanguages": ["node"],
119-
"matchUpdateTypes": ["minor", "patch"],
120-
},
121-
{
122-
"groupName": "npm-dev",
123-
"matchManagers": ["npm"],
124-
"matchDepTypes": ["devDependencies"],
125-
"separateMajorMinor": false,
126-
},
127-
{
128-
"groupName": "Terraform",
129-
"matchManagers": ["terraform"],
130-
"separateMajorMinor": false,
131-
},
13290

133-
// Updating coupled ecosystems.
134-
{
135-
"groupName": "Playwright",
136-
"matchPackageNames": [
137-
"playwright",
138-
"@playwright/test",
139-
"mcr.microsoft.com/playwright",
140-
],
141-
},
142-
{
143-
"groupName": "OpenTelemetry",
144-
"matchLanguages": ["python"],
145-
"matchPackagePrefixes": ["opentelemetry-"],
146-
},
14791
],
14892
}

.github/snippet-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 Google LLC
1+
# Copyright 2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)