libe3 0.6.1
C++ library for E3AP RAN vendor integration
Loading...
Searching...
No Matches
Contributing

Thank you for considering contributing to this project! Please follow these guidelines to help us maintain a welcoming and productive environment. When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the original authors of this work.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a build.
  2. Update the README.md with details of changes to the interface, this includes new environment variables, exposed ports, useful file locations and container parameters.
  3. Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent. The versioning scheme we use is SemVer. This repository is part of a framework that includes a Python library for dApps and a fork of OpenAirInterface written in C. We do not accept major patches that break or reduce compatibility with the twin repository.
  4. Submitted code must have been tested and should work with all the compatible configurations of the framework.
  5. Your branch must fast-forward onto main. Keep it a linear descendant of main (rebase onto the latest main whenever main moves) with no merge commits, so the exact commits reviewed in the Pull Request are the ones that land. Merges without prior approval are not allowed.
  6. Every commit must stand on its own. Each commit must build and pass tests independently, so git bisect stays usable. Fold "WIP"/"fixup" commits into coherent commits (git rebase -i) before review, and give each a descriptive message: an imperative subject line and, for non-trivial changes, a body explaining the what and why.

Development Workflow

Development happens in the open on wineslab/libe3.

For maintainers and existing collaborators

Branch from main, open the PR against wineslab/libe3, follow the templates in .github/, and let CI run.

For external contributors

Fork wineslab/libe3, push your branch, and open a PR against main. Before starting non-trivial work, please open an issue (or email **a.laca.nosp@m.va@n.nosp@m.orthe.nosp@m.aste.nosp@m.rn.ed.nosp@m.u**) describing what you intend to change so we can coordinate.

Merging (maintainers)

Merges into main are fast-forward only, performed by a maintainer from the command line:

git fetch origin && git checkout main && git merge --ff-only <approved-branch> && git push origin main

Do not merge through the GitHub merge button: it would rewrite or add commits and would not preserve the exact reviewed commits. GitHub requires at least one merge method to stay enabled ("Squash and merge" is left on for that reason only), so maintainers must ignore it and merge from the command line as above. main is protected, so the fast-forward push is performed by a maintainer with push (bypass) rights on the branch. The CI report workflow posts the ready-to-run merge command as part of its report comment, once every required check is green for the head commit.

Mandatory checks

The following are mandatory for every contribution. PRs that do not meet them will not be reviewed.

Issues

  • All issues must use one of the templates in .github/ISSUE_TEMPLATE/ (bug_report, feature_request, question, documentation, new_sm, or interop). Blank issues are disabled.
  • Required fields in the templates must be completed; placeholder text is not acceptable.

Pull requests

  • All PRs must use .github/PULL_REQUEST_TEMPLATE.md and fill in every section; CI (below) is what checks the build, the tests and the commit policy.
  • CI runs as stages in order (.github/workflows/ci.yml). A stage starts only when every stage before it passed:

    1. Commit policy, then
    2. Unit Tests, then
    3. Wheels, latrec portability and MPMC benchmark, in parallel, then
    4. E2E dApp Integration, E2E Topologies and Full-loop benchmark, in parallel.

    Docs runs beside them. The stages after the commit policy are skipped when no changed file is code, and a change to .github/workflows/ or .github/scripts/ counts as code and starts every stage. Wheels runs only when the PR changes what the wheels are built from, latrec portability only when it changes latrec.h or latrec.c, and MPMC benchmark only when it changes the queue or its benchmark; a stage that does not run does not hold up the next. .github/scripts/detect_changes.sh decides, and .github/scripts/test_ci_gates.py checks the order. These must be green on the latest commit before review:

    • Unit Tests (.github/workflows/pr-tests.yml) — builds and runs ctest --output-on-failure for both Debug and Release on ubuntu-latest, plus the integration, all-encodings, and SWIG jobs.
    • Commit policy (.github/workflows/commit-trailers.yml) — validates the AI-assistant trailer policy on every commit (see AI assistants), that the branch is a linear, fast-forward-able descendant of main (no merge commits), that every commit builds and passes tests on its own, and that every file carries an SPDX header (reuse lint, see Licensing headers).
    • Docs (.github/workflows/docs.yml) — builds the Doxygen documentation in strict mode and fails on any warning in a file the PR changes: besides the usual ones, a member or class without a description, a function parameter without @param and a function without @return each count. Gaps in files the PR does not change are listed in the report and do not fail it. It only does work when a PR changes a documentation input (include/, src/, swig/, docs/, README.md, CONTRIBUTING.md); put an explicit <a id="..."></a> before a heading that another page links to. Run ./build_libe3 --docs-strict to see the same warnings locally, and read the full list in the doxygen-warnings artifact of a run.
  • A documentation-only PR runs the commit policy, Docs and CI report only.
  • CI posts exactly one comment per PR, from CI report (.github/workflows/ci-report.yml). It works out from the changed files which workflows should have started (CI, Docs), waits until they have all finished for the head commit, then writes a verdict, a per-workflow table (including which workflows a paths filter kept from starting), the benchmark and E2E detail those workflows published, and the fast-forward merge command once everything is green. Pushing to the branch rewrites that comment in place rather than adding another. Individual workflows no longer comment on their own.
  • CI report is the one status check the ruleset requires. It fails when a workflow failed, when a workflow the changed files should have started did not start, or when CI has not finished after about two hours. A stage that CI skipped on purpose is not an error. To add a stage, make it a workflow with workflow_call and add a job for it to ci.yml with needs; a workflow that starts on pull_request by itself has to be listed in .github/scripts/test_workflow_filters.py. The tests there and in test_ci_gates.py run in the report job.
  • The following local checks must be reported in the PR description as run by the contributor (mirroring CI):
    • The branch is rebased on the latest main, git log --merges origin/main..HEAD is empty, and each commit builds and passes tests independently.
    • ./build_libe3 -c -d build -j $(nproc) -r -t passes (Release + tests).
    • ./build_libe3 -c -d build -j $(nproc) -g -t passes (Debug + tests).
    • The MPMC benchmark (./build/test_bench_mpmc_queue) shows no regression vs main.
    • VERSION bumped per SemVer when public API or ABI changes.
    • ./build_libe3 --docs-strict reports no Doxygen warning in the files you changed (the Docs workflow fails on any).
    • README.md and/or CONTRIBUTING.md updated when contributor- or user-facing behavior changes.

Licensing headers

Every file in the tree carries two lines, in the comment syntax of its language:

SPDX-FileCopyrightText: Copyright (c) 2026 Northeastern University
SPDX-License-Identifier: Apache-2.0

New files must carry them too. Prose and plain-data files (*.md, VERSION, CONTRIBUTORS, CITATION.cff, .gitignore, .github/CODEOWNERS) are covered in bulk by REUSE.toml instead of an inline header; add a path there rather than a header if your new file is one of those. LICENSES/Apache-2.0.txt holds the license text for the REUSE tooling, and the root LICENSE stays as it is for GitHub's license detection.

The SPDX / REUSE compliance job in the Commit policy workflow runs reuse lint and fails the PR if anything is unmarked. Run it locally with:

pipx install reuse && reuse lint

AI assistants

Contributions developed with the help of AI tools (LLM coding assistants, agents, and similar) are welcome, subject to the following mandatory rules, adapted from the Linux kernel and OpenAirInterface contribution guidelines.

  • AI agents must not add Signed-off-by or Co-authored-by trailers. Those trailers certify human authorship and origin, which only a human contributor can provide; Co-authored-by is reserved for human collaborators.
  • When an AI tool materially assisted a commit, disclose it with one Assisted-by trailer per tool. The value is free-form (any non-empty descriptor); both the compact AGENT_NAME:MODEL_VERSION form and the Linux-kernel Name <email> form are accepted, for example:

    Assisted-by: Claude:claude-opus-4-8
    Assisted-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
    Assisted-by: Genesis agents based on Claude:claude-opus-4-8
  • The human submitter bears full responsibility for reviewing AI-generated code, for its correctness, and for its compatibility with this project's Apache-2.0 license (retain the SPDX headers already present in the sources, and add them to any new file: see Licensing headers).

These rules are enforced by the Commit policy workflow (.github/workflows/commit-trailers.yml), which fails any commit that attributes an AI agent through Co-authored-by/Signed-off-by or that carries an empty Assisted-by trailer. You can run the same check locally with python3 scripts/check_commit_trailers.py --base origin/main --head HEAD.

Service Models and twin-repo coordination

This repository is part of a framework that includes dapps (the Python dApp library) and dApp-openairinterface5g (the OAI fork). We do not accept patches that break or reduce compatibility with the twin repositories. PRs that change the public API/ABI, the E3 wire protocol, or add a new Service Model must come with a paired PR in the affected twin repo, linked from the PR description.

Specifications and their Word editions

The specifications live under docs/ (e2sm-dapp/, e3ap/, e3sm/spectrum/, e3sm/l1-kpm/). The Markdown is the source. The Word file in each folder (O-RAN.XXX.TS.*.docx, where XXX holds the place of the group name until the naming is agreed) is generated from it, so never edit a Word file by hand: the next build overwrites the edit.

To change a specification:

  1. Edit the Markdown chapters of that folder (README.md for the scope, references, terms and general clauses, 01 to 06 for the clauses that follow). Write American English, short sentences, no dashes, shall and should instead of must. Spec text names no repository and gives no path:line; code pointers go in the integrator guide (integrator-guide.md, code-pointers.md).
  2. Put a line Table: <caption> directly above each new table, so the Word file gets a caption.
  3. To change the clause layout, the title or the document number, edit docx.json in the same folder.
  4. Build the Word file in the container of tools/oran_docx/, so that the table of contents has page numbers: docker build -t libe3-oran-docx tools/oran_docx, then docker run --rm -u "$(id -u):$(id -g)" -v "$PWD":/src libe3-oran-docx docs/<folder>. Without Docker, tools/oran_docx/build_docx.py docs/<folder> needs Python 3 only, and adds the page numbers only when LibreOffice and pdftotext are installed. See tools/oran_docx/README.md.
  5. Open the result in Word or convert it to PDF, and look at the cover, one table and the ASN.1 clause.
  6. Commit the Markdown and the rebuilt Word file in the same commit, so the two never differ.

A change that touches only these files runs no tests in CI (see .github/scripts/detect_code_changes.sh). To change the grammar in a specification that includes it (E3AP, E2SM-DAPP), change the .asn1 or .asn file under messages/ first. The ASN.1 block in 04-encoding.md has to stay byte-identical to it.

Code of Conduct

Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

Our Standards

Examples of behavior that contributes to creating a positive environment include:

  • Using welcoming and inclusive language
  • Being respectful of differing viewpoints and experiences
  • Gracefully accepting constructive criticism
  • Focusing on what is best for the community
  • Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

  • The use of sexualized language or imagery and unwelcome sexual attention or advances
  • Trolling, insulting/derogatory comments, and personal or political attacks
  • Public or private harassment
  • Publishing others' private information, such as a physical or electronic address, without explicit permission
  • Other conduct which could reasonably be considered inappropriate in a professional setting

Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

Attribution

This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at http://contributor-covenant.org/version/1/4