mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:31:54 +00:00
Closes [DINF-51](https://linear.app/sourcegraph/issue/DINF-51/failed-back-compat-doesnt-count-towards-branch-locking-quota) ## Context If a back-compat step on main fails, the build is marked as having failed. However, we don't treat that as a failure in build-tracker, resulting in no #buildkite-main post and not counting towards failed build quota for locking main. The reason why this was happening is that the Backcompat build wasn't linked to the main Sourcegraph build in anyway. However, when a backcompat fails the main build reflects the status of this failure, but we do not use this field when determining the status of a build, so it doesn't work for our use case.  We [instead do a walkthrough of all the jobs associated with a build to figure out](https://sourcegraph.sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/dev/build-tracker/main.go?L349-372) if the build has failed, fixed or is passing. With this logic, it means we have to link the steps from child builds that a particular build triggers to it's parent. ## Test plan * Create a build that'll have backcompat failing * The build tracker event associated with the main build will be reported with a state of failed to buildkite.  ## Changelog <!-- OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c --> |
||
|---|---|---|
| .. | ||
| buf | ||
| ci | ||
| cloudsqlproxy | ||
| dependencies | ||
| enterprise | ||
| internal | ||
| interrupt | ||
| linters | ||
| msp | ||
| root | ||
| sams | ||
| .gitignore | ||
| analytics.go | ||
| bootstrap.sh | ||
| BUILD.bazel | ||
| checks.go | ||
| Dockerfile | ||
| generates.go | ||
| live.go | ||
| main_test.go | ||
| main.go | ||
| os.go | ||
| OWNERS | ||
| README.md | ||
| sg_audit.go | ||
| sg_backport.go | ||
| sg_bazel.go | ||
| sg_cloud.go | ||
| sg_cody_gateway.go | ||
| sg_db.go | ||
| sg_deploy.go | ||
| sg_doctor.go | ||
| sg_embeddings_qa.go | ||
| sg_generate.go | ||
| sg_help.go | ||
| sg_images_test.go | ||
| sg_images.go | ||
| sg_insights.go | ||
| sg_install.go | ||
| sg_lint.go | ||
| sg_live.go | ||
| sg_logo.go | ||
| sg_migration.go | ||
| sg_monitoring.go | ||
| sg_ops.go | ||
| sg_page.go | ||
| sg_rfc.go | ||
| sg_run.go | ||
| sg_secret.go | ||
| sg_security.go | ||
| sg_setup.go | ||
| sg_src.go | ||
| sg_start_test.go | ||
| sg_start.go | ||
| sg_teammate.go | ||
| sg_tests.go | ||
| sg_update.go | ||
| sg_version.go | ||
| sg_wolfi.go | ||
| sg.config.example.yaml | ||
| sg.doctor.yaml | ||
| VISION.md | ||
sg - the Sourcegraph developer tool
_____ _____
/\ \ /\ \
/::\ \ /::\ \
/::::\ \ /::::\ \
/::::::\ \ /::::::\ \
/:::/\:::\ \ /:::/\:::\ \
/:::/__\:::\ \ /:::/ \:::\ \
\:::\ \:::\ \ /:::/ \:::\ \
___\:::\ \:::\ \ /:::/ / \:::\ \
/\ \:::\ \:::\ \ /:::/ / \:::\ ___\
/::\ \:::\ \:::\____\/:::/____/ ___\:::| |
\:::\ \:::\ \::/ /\:::\ \ /\ /:::|____|
\:::\ \:::\ \/____/ \:::\ /::\ \::/ /
\:::\ \:::\ \ \:::\ \:::\ \/____/
\:::\ \:::\____\ \:::\ \:::\____\
\:::\ /:::/ / \:::\ /:::/ /
\:::\/:::/ / \:::\/:::/ /
\::::::/ / \::::::/ /
\::::/ / \::::/ /
\::/ / \::/____/
\/____/
sg is the CLI tool that Sourcegraph developers can use to develop Sourcegraph.
Learn more about it here.