-
Notifications
You must be signed in to change notification settings - Fork 271
BED-6503: Consolidated Pipeline - BHCE Changes #2019
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
Conversation
WalkthroughThe PR removes Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
💤 Files with no reviewable changes (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
19e87d0 to
010aa52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/run-prepare-for-review.yml(3 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: elikmiller
Repo: SpecterOps/BloodHound PR: 1563
File: packages/go/graphschema/azure/azure.go:24-24
Timestamp: 2025-06-06T23:12:14.181Z
Learning: In BloodHound, files in packages/go/graphschema/*/`*.go` are generated from CUE schemas. When `just prepare-for-codereview` is run, it triggers code generation that may automatically add import aliases or other formatting changes. These changes are legitimate outputs of the generation process, not manual edits that would be overwritten.
📚 Learning: 2025-06-06T23:12:14.181Z
Learnt from: elikmiller
Repo: SpecterOps/BloodHound PR: 1563
File: packages/go/graphschema/azure/azure.go:24-24
Timestamp: 2025-06-06T23:12:14.181Z
Learning: In BloodHound, files in packages/go/graphschema/*/`*.go` are generated from CUE schemas. When `just prepare-for-codereview` is run, it triggers code generation that may automatically add import aliases or other formatting changes. These changes are legitimate outputs of the generation process, not manual edits that would be overwritten.
Applied to files:
.github/workflows/run-prepare-for-review.yml
📚 Learning: 2025-07-17T15:10:25.757Z
Learnt from: superlinkx
Repo: SpecterOps/BloodHound PR: 1652
File: .github/workflows/run-main-tests.yml:46-47
Timestamp: 2025-07-17T15:10:25.757Z
Learning: The `stbernard deps` command is not deprecated and remains a functional command in the BloodHound codebase. It's implemented in `packages/go/stbernard/command/deps/deps.go` and is used to ensure workspace dependencies are up to date by calling `yarn.InstallWorkspaceDeps`.
Applied to files:
.github/workflows/run-prepare-for-review.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: Build BloodHound Container Image / Build and Package Container
- GitHub Check: run-prepare-for-review
- GitHub Check: build-ui
- GitHub Check: run-tests
🔇 Additional comments (3)
.github/workflows/run-prepare-for-review.yml (3)
17-17: Clear naming improvement for workflow purpose.The renamed workflow and job better reflect the comprehensive code review preparation process (moving from "Static Code Analysis" to "Run Prepare For Code Review"). This aligns well with the expanded scope of the pipeline.
Also applies to: 29-29
35-36: Fetch-depth: 0 appropriate for code generation and synchronization steps.Full repository history is necessary for the stbernard code generation and module synchronization operations that follow. This is a standard requirement for comprehensive code review preparation workflows.
54-54: Step naming improves clarity.The renamed steps ("Install Dependencies" and "Run Static Analysis") provide clearer intent while maintaining the same functional behavior with stbernard commands.
Also applies to: 58-58
ae696a1 to
c00eb18
Compare
Description
Please see: https://github.com/SpecterOps/bloodhound-enterprise/pull/699 for more insight.
Since we're adding
slow-go-testsback to Pull Requests, I had to fix the failing tests first.I noticed our Slow Integration Tests are failing. These tests run against real Postgres instances (via pgtestdb) and each test opens a connection pool. When tests run in parallel, the pools add up quickly and can exceed Postgres’s max_connections limit, causing flaky “too many connections” errors. For now, we should probably try to avoid using t.Parallel() in any slow-integration tests.
Motivation and Context
Resolves <TICKET_OR_ISSUE_NUMBER>
Why is this change required? What problem does it solve?
How Has This Been Tested?
Passing pipeline
Screenshots (optional):
Types of changes
Checklist:
Summary by CodeRabbit