Skip to content

Commit

Permalink
Merge branch 'master' into document_quality_bar
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpollock committed May 17, 2024
2 parents e473285 + 2e1117e commit d75f4aa
Show file tree
Hide file tree
Showing 31 changed files with 1,059 additions and 765 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/issue-signposting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Add comments to specifically labeled issues
on:
issues:
types:
- labeled
jobs:
add-comment:
if: github.event.label.name == 'data quality'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment signposting to FAQ
run: gh issue comment "$NUMBER" --body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: >
:sparkles: Thank you for your interest in OSV.dev's data quality! :sparkles:
**Please review our [FAQ entry](https://google.github.io/osv.dev/faq/#ive-found-something-wrong-with-the-data) on how to most efficiently have this addressed.**
554 changes: 265 additions & 289 deletions Pipfile.lock

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions deployment/clouddeploy/gke-workers/base/importer-deleter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: importer-deleter
spec:
schedule: "* */3 * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
containers:
- name: importer-deleter
image: importer
imagePullPolicy: Always
volumeMounts:
- mountPath: "/work"
name: "ssd"
securityContext:
privileged: true
resources:
requests:
cpu: 1
memory: "10G"
limits:
cpu: 1
memory: "11G"
restartPolicy: OnFailure
volumes:
- name: "ssd"
hostPath:
path: "/mnt/disks/ssd0"
1 change: 1 addition & 0 deletions deployment/clouddeploy/gke-workers/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ resources:
- workers.yaml
- scaler.yaml
- importer.yaml
- importer-deleter.yaml
- exporter.yaml
- alpine-cve-convert.yaml
- combine-to-osv.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ kind: CronJob
metadata:
name: importer-deleter
spec:
schedule: "* */6 * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
Expand All @@ -19,21 +17,3 @@ spec:
- --delete
- --delete_threshold_pct=20
- --public_log_bucket=osv-test-public-import-logs
imagePullPolicy: Always
volumeMounts:
- mountPath: "/work"
name: "ssd"
securityContext:
privileged: true
resources:
requests:
cpu: 1
memory: "10G"
limits:
cpu: 1
memory: "11G"
restartPolicy: OnFailure
volumes:
- name: "ssd"
hostPath:
path: "/mnt/disks/ssd0"
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
resources:
- ../../base
- debian-cve-convert.yaml
- importer-deleter.yaml
patches:
- path: workers.yaml
- path: scaler.yaml
- path: importer.yaml
- path: importer-deleter.yaml
- path: exporter.yaml
- path: alpine-cve-convert.yaml
- path: combine-to-osv.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: importer-deleter
spec:
jobTemplate:
spec:
template:
spec:
containers:
- name: importer-deleter
env:
- name: GOOGLE_CLOUD_PROJECT
value: oss-vdb
image: importer
args:
- --delete
- --delete_threshold_pct=20
- --public_log_bucket=osv-public-import-logs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
patches:
- path: workers.yaml
- path: importer.yaml
- path: importer-deleter.yaml
- path: exporter.yaml
- path: alpine-cve-convert.yaml
- path: combine-to-osv.yaml
Expand Down
76 changes: 48 additions & 28 deletions deployment/terraform/environments/oss-vdb-test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions deployment/terraform/environments/oss-vdb-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ module "osv_test" {
affected_commits_backups_bucket = "osv-test-affected-commits"
affected_commits_backups_bucket_retention_days = 2

api_url = "api.test.osv.dev"
esp_version = "2.47.0"
website_domain = "test.osv.dev"
api_url = "api.test.osv.dev"
esp_version = "2.47.0"
}

output "website_dns_records" {
description = "DNS records that need to be created for the osv.dev website"
value = module.osv_test.website_dns_records
}


Expand All @@ -27,11 +33,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 5.18.0"
version = "~> 5.27.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 5.18.0"
version = "~> 5.27.0"
}
external = {
source = "hashicorp/external"
Expand Down
76 changes: 48 additions & 28 deletions deployment/terraform/environments/oss-vdb/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions deployment/terraform/environments/oss-vdb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ module "osv" {
affected_commits_backups_bucket = "osv-affected-commits"
affected_commits_backups_bucket_retention_days = 3

api_url = "api.osv.dev"
esp_version = "2.47.0"
website_domain = "osv.dev"
api_url = "api.osv.dev"
esp_version = "2.47.0"
}

output "website_dns_records" {
description = "DNS records that need to be created for the osv.dev website"
value = module.osv.website_dns_records
}

terraform {
backend "gcs" {
Expand All @@ -26,11 +31,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 5.18.0"
version = "~> 5.27.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 5.18.0"
version = "~> 5.27.0"
}
external = {
source = "hashicorp/external"
Expand Down
5 changes: 5 additions & 0 deletions deployment/terraform/modules/osv/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ variable "esp_version" {
type = string
description = "ESP version to use for OSV API frontend image."
}

variable "website_domain" {
type = string
description = "Domain to serve the OSV website on. Domain ownership and DNS settings must be manually configured."
}

0 comments on commit d75f4aa

Please sign in to comment.