Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link

Copilot AI commented Nov 12, 2025

Applicable spec: N/A

Overview

Removes the jobmanager platform provider implementation and associated integration tests. This platform was not part of the public API and is no longer used.

Rationale

Reduces maintenance burden and simplifies the test matrix by eliminating unused code (~10,000 lines).

Juju Events Changes

None.

Module Changes

Platform Provider

  • Removed JobManagerPlatform provider class and jobmanager_api module
  • Updated Platform enum to only include GITHUB
  • Simplified platform_factory to only instantiate GitHub provider
  • Updated reactive consumer to reject non-GitHub job URLs

Configuration

  • Removed JobManagerConfiguration class
  • Removed jobmanager_config parameter from ApplicationConfiguration, ReactiveProcessConfig, and factory functions
  • Updated CharmConfig to remove jobmanager URL/token fields
  • Removed URL-based path detection from GithubConfig.from_charm()

Service Management

  • Removed jobmanager client package installation from manager_service.py

Tests

  • Removed test_jobmanager_prespawned and test_jobmanager_reactive integration tests
  • Removed unit tests for jobmanager provider and API
  • Updated test factories and parametrized tests to remove jobmanager cases

Dependencies

  • Removed ./jobmanager/client from requirements.txt
  • Removed entire jobmanager/ directory (~80 files)

Version

  • Bumped application version from 0.6.3 to 0.7.0 to reflect the removal of jobmanager platform functionality

Library Changes

None.

Checklist

  • The charm style guide was applied.
  • The contributing guide was applied.
  • The changes are compliant with ISD054 - Managing Charm Complexity
  • The documentation for charmhub is updated.
  • The PR is tagged with appropriate label (urgent, trivial, complex).
  • The changelog is updated with changes that affects the users of the charm.
  • The application version number is updated in github-runner-manager/pyproject.toml.
Original prompt

This section details on the original issue you should resolve

<issue_title>Remove jobmanager platform and related integration tests</issue_title>
<issue_description>Background

The jobmanager platform is no longer used and is not part of any public API. Removing it will reduce maintenance and simplify the test matrix for this repository.

Scope

  • Remove the jobmanager platform/provider implementation (jobmanager_provider).
  • Remove the two integration tests: test_jobmanager_prespawned and test_jobmanager_reactive.
  • Update CI (GitHub Actions), documentation, and related build configuration accordingly.

Checklist

  • Search the repo for jobmanager, jobmanager_provider, test_jobmanager_prespawned, and test_jobmanager_reactive, and produce an inventory of affected files.
  • Remove or skip the two integration test modules and confirm CI is green.
  • Remove jobmanager_provider and all code/config references to the jobmanager platform.
  • Remove jobmanager-related docs, examples, and manifests.
  • Update CI workflows/build files to remove jobmanager from the test matrix.
  • Run full unit and integration tests for remaining platforms, fix any unrelated regressions discovered.
  • Update README and architecture docs, and add a CHANGELOG entry describing this removal.

Branch suggestion: remove/jobmanager-and-tests
Labels: cleanup, refactor
Effort: 1–3 PRs, 4–12 hours depending on cross-repo impacts.

Additional context: This issue initiates complete removal since jobmanager is not exposed as any public API to consumers.
</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Remove jobmanager platform and related integration tests Remove jobmanager platform provider and integration tests Nov 12, 2025
Copilot AI requested a review from cbartz November 12, 2025 09:28
Copilot finished work on behalf of cbartz November 12, 2025 09:28
Copy link
Collaborator

@cbartz cbartz left a comment

Choose a reason for hiding this comment

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

LGTM

@cbartz cbartz marked this pull request as ready for review November 12, 2025 09:40
@cbartz
Copy link
Collaborator

cbartz commented Nov 13, 2025

@copilot can you bump the application version number ?

Copy link
Author

Copilot AI commented Nov 13, 2025

@copilot can you bump the application version number ?

Bumped application version from 0.6.3 to 0.7.0 in commit a405175.

Copilot AI requested a review from cbartz November 13, 2025 06:38
Copilot finished work on behalf of cbartz November 13, 2025 06:38
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.

Remove jobmanager platform and related integration tests

4 participants