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
22 changes: 14 additions & 8 deletions community/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,22 @@ Zenodo & Citation <zenodo>

:::{toctree}
:maxdepth: 2
:caption: GitHub Processes
:caption: Our infrastructure

GitHub <infrastructure/intro>
Our Repos <infrastructure/our-repositories>
GitHub Issue Guidelines <infrastructure/issues>
Pull Requests <infrastructure/pull-requests>
Continuous Integration (CI) <infrastructure/continuous-integration>
GitHub permissions <infrastructure/permissions>
Our website <infrastructure/intro>
Our GitHub repositories <infrastructure/our-repositories>
Website & metrics data <infrastructure/data-process>
Editorial teams <infrastructure/editorial-teams>
Data Workflows <infrastructure/data-process>
GitHub permissions <infrastructure/permissions>
:::

:::{toctree}
:maxdepth: 2
:caption: Contributing on GitHub

GitHub issue guidelines <infrastructure/issues>
Pull requests <infrastructure/pull-requests>
Continuous integration (CI) <infrastructure/continuous-integration>
:::

:::{toctree}
Expand Down
4 changes: 2 additions & 2 deletions community/infrastructure/continuous-integration.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 3. Continuous integration
# Continuous integration

## What is CI?

Expand Down Expand Up @@ -166,7 +166,7 @@ repository maintainer for help. We understand that Continuous Integration (CI) c
:::

(pre-commit-ci)=
## About the Pre-Commit CI Bot
## About the pre-commit CI bot

The [Pre-commit CI bot](https://pre-commit.ci/) is a continuous integration
service that automatically runs pre-commit hooks on each pull request. This
Expand Down
339 changes: 297 additions & 42 deletions community/infrastructure/data-process.md

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions community/infrastructure/editorial-teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Looking for the full process of welcoming or thanking an editor, including Slack
When you add someone to a team, two separate things happen:

* **Repository access.** Editorial board members get repository access through this team. Membership lets them lead reviews and edit our peer review guide. Only `editorial-board` and `eic-team` grant it.
* **The public listing.** It decides who appears on the [editorial board page](https://www.pyopensci.org/about-peer-review/index.html#meet-our-editorial-board) and in the editorial dashboard in our [metrics](https://www.pyopensci.org/metrics). Every editorial team affects it. Two scheduled workflows read team membership to build the listing (see [data workflows](data-process)).
* **The public listing.** It decides who appears on the [editorial board page](https://www.pyopensci.org/about-peer-review/index.html#meet-our-editorial-board) and in the editorial dashboard in our [metrics](https://www.pyopensci.org/metrics). Every editorial team affects it. Two scheduled workflows read team membership to build the listing (see [website & metrics data](data-process)).

## Which team to add someone to

Expand All @@ -20,7 +20,8 @@ Add the person to **every team that matches their role**. Being on the parent
team alone doesn't list them.

:::{mermaid}
flowchart TB
flowchart LR
classDef default font-size:18px
PR[peer-review-team]
PR --> EB[editorial-board]
PR --> EIC[eic-team]
Expand Down Expand Up @@ -50,7 +51,7 @@ Someone can hold more than one role, such as editor and triage. Add them to ever

## Add or remove an editor

The step-by-step process for adding and offboarding editors is in the [onboarding guide](https://www.pyopensci.org/software-peer-review/how-to/onboarding-guide.html#onboarding-a-new-editor). Use the table above to pick the right teams, then [update the website right away](data-process.md#update-the-website-right-away) if you don't want to wait for the next scheduled run.
The step-by-step process for adding and offboarding editors is in the [onboarding guide](https://www.pyopensci.org/software-peer-review/how-to/onboarding-guide.html#onboarding-a-new-editor). Use the table above to pick the right teams, then [update the website right away](update-the-website-right-away) if you don't want to wait for the next scheduled run.

## Guest editors

Expand Down Expand Up @@ -78,5 +79,5 @@ The Editor in Chief team and the Software Review Lead usually hold all the above
## Learn more

* [Onboarding guide](https://www.pyopensci.org/software-peer-review/how-to/onboarding-guide.html): the full process, including Slack and introductions
* [Data workflows](data-process): schedules, files, and what to do if a workflow fails
* [Website & metrics data](data-process): schedules, files, and what to do if a workflow fails
* [GitHub permissions](permissions): repository access for every team
142 changes: 87 additions & 55 deletions community/infrastructure/intro.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,85 @@
(github-intro)=
# pyOpenSci Infrastructure
# pyOpenSci website infrastructure

pyOpenSci uses GitHub to manage almost all of its infrastructure, from community processes to website rendering.
This page provides a **high-level overview** of our infrastructure, focusing on how our core repositories work together and contribute to the website and community operations.
pyOpenSci uses GitHub to manage almost all of its infrastructure, from
community processes to website rendering. This page gives a high-level
overview of how our repositories work together to build our websites
and keep community data up to date.

For detailed information about specific infrastructure components, see the [Learn more](#learn-more) section below.

## What is pyOpenSci infrastructure?

pyOpenSci infrastructure encompasses:

* **GitHub repositories:** All code, content, and documentation repositories
* **Website and documentation:** Main website and sub-sites (handbook, guides, lessons)
* **Data processing:** Automated collection and processing of contributor, peer review, and editorial board data
* **Continuous Integration (CI):** GitHub Actions workflows for testing, building, and deploying
* **Access and permissions:** Repository access management and team structures
* **Issue and pull request workflows:** Processes for managing contributions and reviews
:::{note}
For details on each part of our infrastructure, see the
[Learn more](#learn-more) section below.
:::

## Infrastructure overview diagrams
## How our websites fit together

The pyOpenSci website at [pyopensci.org](https://www.pyopensci.org) is
built from six repositories, in three groups. Each repository is built
separately and published under the `pyopensci.org` domain using GitHub
Pages.
[Netlify](https://www.netlify.com/) builds a preview of each pull request
so you can see changes before they are merged.

The six repositories are:

* **Core website:** [`pyopensci.github.io`](https://github.com/pyOpenSci/pyopensci.github.io),
built with [Hugo](https://gohugo.io/). It is the central hub that links
to every sub-site.
* **Sphinx books:** the [Python Package Guide](https://github.com/pyOpenSci/python-package-guide),
[Software Peer Review Guide](https://github.com/pyOpenSci/software-peer-review),
[Handbook](https://github.com/pyOpenSci/handbook), and
[Lessons](https://github.com/pyOpenSci/lessons). Most use our branded
[`pyos-sphinx-theme`](https://github.com/pyOpenSci/pyos-sphinx-theme).
That theme is built on
[pydata-sphinx-theme](https://pydata-sphinx-theme.readthedocs.io/),
the Sphinx theme maintained by the PyData community. We add pyOpenSci
colors, type, and layout on top of it, so the books share one look and
a branding change happens in one repository.
* **Metrics dashboards:** [`metrics`](https://github.com/pyOpenSci/metrics),
built with [Quarto](https://quarto.org/).

The diagrams below illustrate two key aspects of our infrastructure:
```{figure} /images/diagrams/website-repositories-structure.svg
:name: website-repositories-structure

### Data flow and processing
pyOpenSci website structure diagram showing the main website and its
sub-sites (Handbook, Python Package Guide, Software Peer Review Guide,
Lessons, and Metrics).
```

The first diagram shows how contributor, peer review, and editorial data move from GitHub to the website and metrics:
## How data flows from our community programs to the website

Some parts of our websites update automatically using data from GitHub.
This includes the peer review numbers in our
[metrics dashboards](https://www.pyopensci.org/metrics), and the package
listings, community contributors, and editorial board on the main Hugo
website.

We wrote a Python package called
[`pyosMeta`](https://github.com/pyOpenSci/pyosMeta) to collect this data.
It saves the data as YAML files, a plain-text format that our websites
can read. `pyosMeta` collects three kinds of data:

* **Peer review data.** `pyosMeta` parses the
[peer review issues](https://github.com/pyOpenSci/software-submission/issues)
in `software-submission`. It pulls out metadata such as the package
name, repository URL, editor, reviewers, maintainers, and authors.
Maintainers and authors are different people. That data
feeds the [Python packages page](https://www.pyopensci.org/python-packages.html).
* **Peer review roles.** We track editors, the Editor in Chief, and the
triage team using GitHub teams. `pyosMeta` reads team membership to
build the
[editorial board listing](https://www.pyopensci.org/about-peer-review/index.html#meet-our-editorial-board).
See [editorial teams](editorial-teams).
* **Contributors.** We use the [All Contributors bot](https://allcontributors.org/)
to track contributors across our repositories. `pyosMeta` parses each
repository's All Contributors file to build the contributor list on
the [Our Community page](https://www.pyopensci.org/our-community/index.html).

The diagram below shows how this data moves from GitHub to the website
and metrics dashboards:

:::{mermaid}
flowchart LR
flowchart TD
Contrib[All Contributors files] --> Meta[pyosMeta]
Issues[Peer review issues in software-submission] --> Meta
Teams[GitHub editorial teams] --> Meta
Expand All @@ -36,46 +89,25 @@ flowchart LR
Issues -.->|review data| Metrics
:::

Scheduled workflows run `pyosMeta` to collect data from GitHub and write it to YAML files. Each run opens a pull request, and the website updates once you merge it. The metrics dashboards run on their own schedule and read the data that's already on the website's `main` branch.

### Website structure

The second diagram shows how the main pyOpenSci website connects to its sub-sites:

```{figure} /images/diagrams/website-repositories-structure.svg
:name: website-repositories-structure

pyOpenSci website structure diagram showing the main website and its sub-sites (Handbook, Python Package Guide, Software Peer Review Guide, Lessons, and Metrics).
```

All sub-sites are built separately but served under the `pyopensci.org` domain, with the main website (`pyopensci.github.io`) serving as the central hub.

## Where each page's data comes from

The [`pyosMeta`](https://github.com/pyOpenSci/pyosMeta) package is a Python package that **parses review, contributor, and editorial data** and turns it into **machine-readable YAML files**. Here's where each public page gets its data:

* **[Our Community](https://www.pyopensci.org/our-community/index.html) and [Packages](https://www.pyopensci.org/python-packages.html) pages.** The **Update Contribs & reviewers** workflow reads the All Contributors files (`.all-contributorsrc`) in our repositories and the review issues in [`software-submission`](https://github.com/pyOpenSci/software-submission).
* **[Editorial board page](https://www.pyopensci.org/about-peer-review/index.html#meet-our-editorial-board).** The **Update editorial board** workflow reads the GitHub teams under `peer-review-team`, plus a [small manual roster](https://github.com/pyOpenSci/pyopensci.github.io/blob/main/data/manual-editorial-roster.yml) for people who can't join the organization. If you add or remove editors, see [editorial teams](editorial-teams).
* **[Metrics dashboards](https://www.pyopensci.org/metrics).** The metrics repository has its own workflow. It reads review data from GitHub and the editorial board files from the website's `main` branch.
* **Pull request checks.** Every repository runs checks when you open a pull request. See [continuous integration](continuous-integration).

Both website workflows live in [`pyopensci.github.io`](https://github.com/pyOpenSci/pyopensci.github.io). For schedules, the files each one writes, and what to do when one fails, see [data workflows](data-process).

## How our websites are built

* The main website ([`pyopensci.github.io`](https://github.com/pyOpenSci/pyopensci.github.io)) is built with [**Hugo**.](https://gohugo.io/)
* The **Python Package Guide**, **Peer Review Guide**, **Handbook**, and **Lessons** are **Sphinx books**. Most use the [`pyos-sphinx-theme`](https://github.com/pyOpenSci/pyos-sphinx-theme), our branded theme built on top of `pydata_sphinx_theme`.
* The [metrics dashboards](https://www.pyopensci.org/metrics) are built with **Quarto**.
* Each site is built separately and published under the [pyopensci.org](https://www.pyopensci.org) domain using **GitHub Pages**.
Scheduled workflows run `pyosMeta` and open a pull request with the
updated YAML files. The website updates once that pull request is merged.
The metrics dashboards run on their own schedule. A few fields, including
[advisory council](update-the-advisory-council) membership and leadership
roles, are [edited by hand](edit-contributors-by-hand). Schedules, how to
run a workflow, and the full list of hand-edited fields are on
[website and metrics data](data-process).

## Learn more

For details on each part of our infrastructure, see:

* **[All repositories](our-repositories):** Complete list and description of all pyOpenSci GitHub repositories
* **[Data workflows](data-process):** Schedules, files, and troubleshooting for contributor, package, and editorial data
* **[Continuous integration](continuous-integration):** CI/CD workflows and GitHub Actions
* **[Permissions](permissions):** Repository access management and team structures
* **[Website & metrics data](data-process):** Schedules, files, and troubleshooting for contributor, package, and editorial data
* **[Editorial teams](editorial-teams):** Which GitHub team to use when you add or remove an editor
* **[Pull requests](pull-requests):** How to work with pull requests in pyOpenSci repos
* **[Permissions](permissions):** Repository access management and team structures

To contribute to our repositories, see:

* **[Issues](issues):** Issue management and labeling workflows
* **[Pull requests](pull-requests):** How to work with pull requests in pyOpenSci repos
* **[Continuous integration](continuous-integration):** The automated checks that run on every pull request, and what to do when one fails
2 changes: 1 addition & 1 deletion community/infrastructure/issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ While outside contributors will not have permission to label issues, pyOpenSci
core team members and volunteers will. Be sure to add appropriate labels to
issues to make them easier to triage.

## Help-wanted / sprintable issues
## Help-wanted and sprintable issues

If an issue is something that anyone in the community could potentially address,
it's ideal to label the issue with `help-wanted` and/or `sprintable`. A
Expand Down
17 changes: 10 additions & 7 deletions community/infrastructure/our-repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ either one by hand.
after you change an editorial team.

For when each one runs, which files it writes, and who can run them, see
[data workflows](data-process).
[website & metrics data](data-process).

#### Metadata stored in this repository

Expand Down Expand Up @@ -73,7 +73,7 @@ The pyOpenSci metrics repository contains the code for our [metrics
dashboards](https://www.pyopensci.org/metrics), built with
[Quarto](https://quarto.org/). Scheduled workflows refresh the peer review
data and rebuild the site. The editorial dashboard reads the editorial board
files from the website repository. See [data workflows](data-process) for
files from the website repository. See [website & metrics data](data-process) for
details.

Teams with access to this repository:
Expand Down Expand Up @@ -169,7 +169,7 @@ Individuals and teams with access to this repository include:
The pyosMeta repository contains a Python package published on PyPI that we
use to track our package review, contributor, and editorial board data. The
website's scheduled workflows use it to update our website. See
[data workflows](data-process) for how the data moves.
[website & metrics data](data-process) for how the data moves.

Teams with access to this repository:

Expand All @@ -179,10 +179,13 @@ Teams with access to this repository:

**Platform:** Sphinx book template that builds on top of the pydata_sphinx_theme

This repo contains our branded Sphinx theme, which the handbook and software
peer review guide use. Because the branding lives in one theme, we can update
it in one place instead of in each repository, and the change applies
everywhere the theme is used.
This repo contains our branded Sphinx theme. It is built on
[pydata-sphinx-theme](https://pydata-sphinx-theme.readthedocs.io/), the
Sphinx theme maintained by the PyData community. We add pyOpenSci branding
on top of that theme. The handbook and software peer review guide use it.
Because the branding lives in one theme, we can update it in one place
instead of in each repository, and the change applies everywhere the theme
is used.

Creating a theme was inspired by the
[2i2c Sphinx theme](https://sphinx-2i2c-theme.readthedocs.io/en/latest/).
Expand Down
Loading
Loading