sourcegraph/.gitignore
Valery Bugakov 3f96298eb4
bazel: test volatile variables with Percy (#51693)
Use volatile status variables provided by stamping to inject relevant
Git information into the Percy execution process. Percy needs Git commit
and branch to create an accurate report and auto-accept changes on main.
See extensive comments in the code for implementation details.

On the high level, instead of running the Percy CLI directly from Bazel,
we wrap it into the JS script that:

1. Reads volatile status variables with Git info.
2. Creates a Percy CLI command with these variables injected.
3. Exectes the command using args received from the Bazel target.

## Test plan

1. CI
2. Locally: `bazel test //client/web/src/integration:integration-tests
--define=E2E_HEADLESS=true
--define=E2E_SOURCEGRAPH_BASE_URL="http://localhost:7080"
--define=GH_TOKEN=fake --define=XXX` — replace `XXX` with the
`PERCY_TOKEN` from our shared 1Password vault.
2023-05-11 09:20:42 +00:00

200 lines
2.7 KiB
Plaintext

# Temporary directory for whatever you want
.tmp/
# Bazel
bazel-*
.bazelrc-nix
# Vim
*.swp
# JetBrains/IntelliJ
.idea
.graphqlconfig
# Emacs
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
.\#*
.dir-locals.el
# Go
*.o
*.a
*.so
# C
*.dylib
# Mac OS X
.DS_Store
# Python
*.py[cod]
__pycache__
# langkit
/workspace/
# Test binaries
*.test
grapher/python/pysonar2/tests
grapher/ruby/rubysonar/target
grapher/ruby/rubysonar/dependency-reduced-pom.xml
grapher/ruby/yard/.bundle
npm-debug.log
pnpm-error.log
pnpm-debug.log
.codemod.bookmark
.elasticbeanstalk/
.tmp/*.jar
/cmd/frontend/internal/graphqlbackend/node_modules
/ui/artifacts
/ui/node_modules
/ui/assets/_goTemplates.js
/ui/assets/analytics.js
/ui/assets/bundle.js
/ui/assets/bundle.css
/ui/assets/sourcebox.js
/ui/assets/sourcebox.css
/ui/assets/test.js
/ui/assets/test.css
/ui/assets/webpack.manifest.json
/ui/assets/vs
/ui/assets/*.html
/ui/assets/*.map
/ui/assets/*.txt
/ui/assets/extension
/ui/.tmp
/ui/assets/scripts/
/ui/assets/styles/
/ui/assets/*.br
/ui/assets/*.gz
/ui/assets/stats-*
*.json.actual
eb-bundle.zip
/release/
/conf/private
/provision/kubernetes/gen
/deploy/sourcegraph.com/src
/deploy/sourcegraph/src
# Sublime
*.sublime-project
*.sublime-workspace
.bin/
.env
/vendor/
.gtm/
cmd/src/debug
cmd/gitserver/debug
cmd/indexer/debug
/.gtm/
# Client
node_modules
package-lock.json
.nyc_output/
coverage/
out/
client/shared/src/schema/*.d.ts
puppeteer/
package-lock.json
/dist
sourcegraph-webapp-*.tgz
*.tsbuildinfo
graphql-operations.ts
*.module.scss.d.ts
dll-bundle
# Extensions
/client/extension-api/dist
# Direnv
.envrc
.direnv
# Docker images
docker-images/prometheus/config/prometheus_targets.yml
comment.txt
.eslintcache
storybook-static/
# Certificates
*.pem
*.crt
# tilt files
/dev/tilt/generated-cluster
/dev/tilt/tilt-watch-targets
# sonarqube
.scannerwork
# sg command specific things, see ./dev/sg
sg.config.overwrite.yaml
# sg Google Cloud API OAuth token
.sg.token.json
# Generated sitemaps are not committed, they're hosted in a GCS bucket.
sitemap/
sitemap_query.db
# Lighthouse CI reports
.lighthouseci/
# Trivy security vulnerability reports
*-security-report.html
# CI annotations
.annotate
.annotate.lock
annotations/
.buildevent_file
# Buildkite analytics files
test-reports/
# CI linter cache (used only in CI)
.golangci-lint-cache
# go workspace files shouldn't be committed
go.work
go.work.sum
# binary
/sg
# SCIP
index.scip
# Buildkite helper and cache files
/an
/tr
/cache-*.tar
# Backward compatibility database tests patch, generated on the fly in CI
# for `bazel test @sourcegraph_back_compat//...` targets.
/dev/backcompat/back_compat_migrations.patch
# Generated on CI only
.aspect/bazelrc/ci.sourcegraph.bazelrc