Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/scripts/build_python_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ site_name: PulpWorkflow Client
site_description: Workflow bindings
site_author: Pulp Team
site_url: https://docs.pulpproject.org/pulp_workflow_client/
repo_name: daviddavis/pulp_workflow
repo_url: https://github.com/daviddavis/pulp_workflow
repo_name: pulp/pulp_workflow
repo_url: https://github.com/pulp/pulp_workflow
theme: readthedocs
DOCSYAML

Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/scripts/update_backport_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def random_color():
session.headers.update(headers)

# get all labels from the repository's current state
response = session.get(
"https://api.github.com/repos/daviddavis/pulp_workflow/labels", headers=headers
)
response = session.get("https://api.github.com/repos/pulp/pulp_workflow/labels", headers=headers)
assert response.status_code == 200
old_labels = set([x["name"] for x in response.json() if x["name"].startswith("backport-")])

Expand All @@ -47,15 +45,15 @@ def random_color():
# delete old labels that are not in new labels
for label in old_labels.difference(new_labels):
response = session.delete(
f"https://api.github.com/repos/daviddavis/pulp_workflow/labels/{label}", headers=headers
f"https://api.github.com/repos/pulp/pulp_workflow/labels/{label}", headers=headers
)
assert response.status_code == 204

# create new labels that are not in old labels
for label in new_labels.difference(old_labels):
color = random_color()
response = session.post(
"https://api.github.com/repos/daviddavis/pulp_workflow/labels",
"https://api.github.com/repos/pulp/pulp_workflow/labels",
headers=headers,
json={"name": label, "color": color},
)
Expand Down
8 changes: 4 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#### Features {: #0.2.0-feature }

- Added a `pulpcore-manager add-callback-service` management command for registering a `CallbackService` from the worker host (mirrors pulpcore's `add-signing-service`). Useful for image bootstrap scripts that need to register a callback before the API serves traffic.
[#30](https://github.com/daviddavis/pulp_workflow/issues/30)
[#30](https://github.com/pulp/pulp_workflow/issues/30)
- Added `list-callback-services` and `remove-callback-service` management commands for inspecting and removing registered `CallbackService` rows, mirroring pulpcore's `list-signing-services` and `remove-signing-service`.
[#36](https://github.com/daviddavis/pulp_workflow/issues/36)
[#36](https://github.com/pulp/pulp_workflow/issues/36)

---

Expand All @@ -33,13 +33,13 @@ No significant changes.
``{"state": "canceled"}`` now cancels in-flight child tasks and queued
continuations via the workflow's ``TaskGroup``; canceling the
``TaskGroup`` directly also propagates ``CANCELED`` to the ``Workflow``.
[#4](https://github.com/daviddavis/pulp_workflow/issues/4)
[#4](https://github.com/pulp/pulp_workflow/issues/4)
- Added user-registered callbacks that fire on `Workflow` lifecycle events. A new `CallbackService`
resource (modeled after pulpcore's `SigningService`) points at an absolute path to an executable; it
is attached to a workflow via a `WorkflowCallback` whose `callback_type` selects the event
(`running`, `completed`, etc). The script runs as a Pulp task with workflow context available as
environment variables.
[#10](https://github.com/daviddavis/pulp_workflow/issues/10)
[#10](https://github.com/pulp/pulp_workflow/issues/10)
- Added support for ``pulp_labels`` on Workflows. Labels can be set at create
time, updated via the ``set_label``/``unset_label`` actions, and used to
filter the list endpoint with ``pulp_label_select``.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ workflow, cancel it (if it has not yet started) and create a new one.
The demo walks through syncing and publishing a file repo via a Workflow, with
a callback that notifies a messaging service (e.g. Discord/Slack) on
completion. Watch the [YouTube demo](https://www.youtube.com/watch?v=Cqkh_DUPefY)
for a video walkthrough, or follow the [written demo guide](https://github.com/daviddavis/pulp_workflow/blob/main/docs/demo/README.md)
for a video walkthrough, or follow the [written demo guide](https://github.com/pulp/pulp_workflow/blob/main/docs/demo/README.md)
to run it yourself end-to-end.

## CLI

If you're using the `pulp-cli`, be sure to check out [our pulp-workflow plugin](https://github.com/daviddavis/pulp-cli-workflow).
If you're using the `pulp-cli`, be sure to check out [our pulp-workflow plugin](https://github.com/pulp/pulp-cli-workflow).

## Endpoints

Expand Down Expand Up @@ -72,4 +72,4 @@ an error if no such row exists.
## Design

For details on how workflows execute, integrate with pulpcore `TaskGroup`s,
and handle cancellation, see the [design doc](https://github.com/daviddavis/pulp_workflow/blob/main/docs/design.md).
and handle cancellation, see the [design doc](https://github.com/pulp/pulp_workflow/blob/main/docs/design.md).
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ dependencies = [

[project.urls]
Homepage = "https://pulpproject.org"
Repository = "https://github.com/daviddavis/pulp_workflow"
"Bug Tracker" = "https://github.com/daviddavis/pulp_workflow/issues"
Repository = "https://github.com/pulp/pulp_workflow"
"Bug Tracker" = "https://github.com/pulp/pulp_workflow/issues"

[project.entry-points."pulpcore.plugin"]
pulp_workflow = "pulp_workflow:default_app_config"
Expand All @@ -45,7 +45,7 @@ filename = "CHANGES.md"
directory = "CHANGES/"
title_format = "## {version} ({project_date}) {{: #{version} }}"
template = "CHANGES/.TEMPLATE.md"
issue_format = "[#{issue}](https://github.com/daviddavis/pulp_workflow/issues/{issue})"
issue_format = "[#{issue}](https://github.com/pulp/pulp_workflow/issues/{issue})"
start_string = "[//]: # (towncrier release notes start)\n"
underlines = ["", "", ""]

Expand Down
8 changes: 4 additions & 4 deletions releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ This document outlines the steps to perform a release.
```

### Release a New Y-version (e.g., 3.23.0)
- If a new minor version (Y) is needed, trigger a [Create New Release Branch](https://github.com/daviddavis/pulp_workflow/actions/workflows/create-branch.yml) job from the main branch via the GitHub Actions.
- If a new minor version (Y) is needed, trigger a [Create New Release Branch](https://github.com/pulp/pulp_workflow/actions/workflows/create-branch.yml) job from the main branch via the GitHub Actions.
- Look for the "Bump minor version" pull request and merge it.
- Trigger a [Release Pipeline](https://github.com/daviddavis/pulp_workflow/actions/workflows/release.yml) job by specifying the new release branch (X.**Y**) via the GitHub Actions.
- Trigger a [Release Pipeline](https://github.com/pulp/pulp_workflow/actions/workflows/release.yml) job by specifying the new release branch (X.**Y**) via the GitHub Actions.

### Release a New Z-version (Patch Release) (e.g., 3.23.1, 3.22.12)
- Trigger a [Release Pipeline](https://github.com/daviddavis/pulp_workflow/actions/workflows/release.yml) job by specifying the release branch (X.Y) via the GitHub Actions.
- Trigger a [Release Pipeline](https://github.com/pulp/pulp_workflow/actions/workflows/release.yml) job by specifying the release branch (X.Y) via the GitHub Actions.

## Final Steps
- Ensure the new version appears on PyPI (it should appear after [Publish Release](https://github.com/daviddavis/pulp_workflow/actions/workflows/publish.yml) workflow succeeds).
- Ensure the new version appears on PyPI (it should appear after [Publish Release](https://github.com/pulp/pulp_workflow/actions/workflows/publish.yml) workflow succeeds).
- Verify that the changelog has been updated by looking for the "Update Changelog" pull request (A new PR should be available on the next day).
- [optional] Post a brief announcement about the new release on the [Pulp Discourse](https://discourse.pulpproject.org/).
4 changes: 2 additions & 2 deletions template_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ deploy_to_pypi: true
disabled_redis_runners: []
docker_fixtures: false
extra_files: []
github_org: "daviddavis"
latest_release_branch: null
github_org: "pulp"
latest_release_branch: "0.2"
lint_ignore: []
lint_requirements: true
os_required_packages: []
Expand Down
Loading