Skip to content

chore(config): add release config for new fakectx package 🎉 #14

Merged
madflojo merged 14 commits intomainfrom
ctx
Nov 24, 2025
Merged

chore(config): add release config for new fakectx package 🎉 #14
madflojo merged 14 commits intomainfrom
ctx

Conversation

@madflojo
Copy link
Copy Markdown
Owner

@madflojo madflojo commented Nov 24, 2025

This pull request updates the release configuration to add support for versioning and changelog management for the fakes/fakectx package. The main changes involve updating the release configuration files to include this new package.

Release configuration updates:

  • Added a new entry for the fakes/fakectx package in .release-please-config.json, specifying its release type, package name, tagging conventions, extra files to track, and changelog path.
  • Added fakes/fakectx with an initial version of 0.0.0 to .release-please-manifest.json to enable version tracking for this package.

Summary by CodeRabbit

  • Chores
    • Added a new package to the managed release configuration, enabling automated versioning and changelog updates for the new component.
    • Updated the release manifest to include the new component with an initial version entry, ensuring it’s tracked in releases.

✏️ Tip: You can customize this high-level summary in your review settings.

madflojo and others added 13 commits August 30, 2025 08:31
Added a new `fakectx` package to simplify creation of test contexts with specific behaviors,
making it easier to fake it 'til you make it in your test suite!
Added usage examples and references for the fakectx package. Now, cancelling contexts is like waving a magic wand—wish granted! 🪄
Implemented new context helpers: `DeadlineExceeded`, `TimedOut`, and `TimesOutAfter`. Perfect for testing time-related conundrums. Pushing contexts beyond their limits, one test at a time!
Enhanced error checking in tests by adopting errors.Is. Now context errors are easier to spot.
Refined docstrings for clarity and added example tests for context helpers. Making testing as easy as pie!
Added the `CancelledWithCallback` function to invoke a callback upon context cancellation. No more excuses for lazy callbacks! Enhanced tests to ensure callbacks are punctual and polite.
Simplified example outputs for `fakectx` test functions. Because some truths deserve clarity!
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Added a go routine to ensure cancel is called to prevent resource leaks. Even timeouts need a tidy up!
Configured release-please to recognize fakectx—because every fake context needs its moment!
Copilot AI review requested due to automatic review settings November 24, 2025 01:00
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Nov 24, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Added release-please configuration and manifest entries for a new Go package fakes/fakectx, including package metadata, tagging options, extra files, and an initial manifest version of 0.0.0. (50 words)

Changes

Cohort / File(s) Summary
Release configuration
.release-please-config.json
Added package entry "fakes/fakectx" with release-type: "go", bump-minor-pre-major: true, include-component-in-tag: true, include-v-in-tag: true, extra-files: ["fakes/fakectx/go.mod"], and changelog-path: "CHANGELOG.md".
Release manifest
.release-please-manifest.json
Added manifest entry "fakes/fakectx": "0.0.0" and adjusted surrounding formatting to accommodate the new entry.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Review areas to spot-check:
    • .release-please-config.json — validate JSON structure and tag formatting options.
    • .release-please-manifest.json — confirm manifest formatting and initial version correctness.
    • fakes/fakectx/go.mod referenced in extra-files exists in repo (if present).

Possibly related PRs

Poem

🐰 A twitch, a hop, a config new and spry,
fakes/fakectx ready to tag and fly,
zero-dot-zero-zero tucked in place,
changelogs waiting for their trace,
I nibble bytes and cheer, then hop away with pride.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding release configuration for the new fakectx package across two config files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ctx

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c7e9dd1 and 117a594.

📒 Files selected for processing (1)
  • .release-please-config.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .release-please-config.json

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5510b54) to head (117a594).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #14   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          127       127           
=========================================
  Hits           127       127           
Flag Coverage Δ
./fakes/fakectx-unittests 100.00% <ø> (ø)
./helpers/counter-unittests 100.00% <ø> (ø)
./things/testurl-unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds release-please configuration for the new fakes/fakectx package, enabling automated versioning and changelog management. The configuration follows the established mono-repo pattern used by other sub-packages (things/testurl and helpers/counter).

Key Changes

  • Added fakes/fakectx package configuration to .release-please-config.json with Go release type, version tagging, and extra files tracking
  • Initialized fakes/fakectx version to 0.0.0 in .release-please-manifest.json for version tracking

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.release-please-config.json Adds release configuration for fakes/fakectx package with Go release type, component tagging, and tracking of go.mod and fakectx.go files
.release-please-manifest.json Initializes version tracking for fakes/fakectx at version 0.0.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@madflojo madflojo merged commit c42d949 into main Nov 24, 2025
15 checks passed
@madflojo madflojo deleted the ctx branch November 24, 2025 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants