Skip to content

Add GitHub Actions CI pipeline for automated testing - #14

Merged
rijesha merged 5 commits into
mainfrom
copilot/add-testing-pipeline
Nov 6, 2025
Merged

Add GitHub Actions CI pipeline for automated testing#14
rijesha merged 5 commits into
mainfrom
copilot/add-testing-pipeline

Conversation

Copilot AI commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

Adds automated test execution on commits and PRs to main branch.

Changes

  • CI Workflow (.github/workflows/test.yml)

    • Runs on push to main and PRs targeting main
    • Sets up Python 3.11, Node.js 20, GCC/G++ toolchain
    • Installs dependencies and executes python test_all.py
    • Uploads test artifacts (generated code, binary files) with 5-day retention
    • Uses minimal permissions (contents: read)
  • Documentation (README.md)

    • Added Continuous Integration section with pipeline overview

Test Coverage

The pipeline validates:

  • Code generation for C, C++, TypeScript, Python
  • Compilation and execution for all target languages
  • Serialization/deserialization across primitive types, arrays, nested messages
  • Cross-language binary compatibility
  • Framed packet parsing

Test results and artifacts are accessible via the Actions tab after each run.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add testing pipeline</issue_title>
<issue_description>Create pipeline to run all tests on commits or PRs into main.</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 and others added 4 commits November 6, 2025 02:10
Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>
Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>
Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>
Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>
@rijesha
rijesha requested a review from Copilot November 6, 2025 02:14
@rijesha
rijesha marked this pull request as ready for review November 6, 2025 02:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 GitHub Actions continuous integration to automatically run the test suite on every push and pull request to the main branch. The changes also document the CI setup in the README.

  • Adds a GitHub Actions workflow that runs the complete test suite with Python 3.11 and Node.js 20
  • Documents the CI pipeline, including what it does and how to access test results
  • Configures artifact uploads for generated code and binary files with 5-day retention

Reviewed Changes

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

File Description
.github/workflows/test.yml New GitHub Actions workflow that installs dependencies and runs the full test suite
README.md Adds "Continuous Integration" section documenting the CI pipeline and artifact retention

Comment thread README.md
2. Installs system dependencies (GCC, G++)
3. Installs Python dependencies (proto-schema-parser, structured-classes)
4. Installs Node.js dependencies
5. Runs the complete test suite (`python test_all.py`)

Copilot AI Nov 6, 2025

Copy link

Choose a reason for hiding this comment

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

The documentation states the CI runs python test_all.py, but according to the repository structure and coding guidelines, the correct command should be python3 test_all.py for consistency with other Python commands used throughout the project (e.g., line 20: PYTHONPATH=src python3 src/main.py).

Copilot uses AI. Check for mistakes.
Comment on lines +38 to +45
python -m pip install --upgrade pip
pip install proto-schema-parser structured-classes

- name: Install Node.js dependencies
run: npm ci

- name: Run test suite
run: python test_all.py

Copilot AI Nov 6, 2025

Copy link

Choose a reason for hiding this comment

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

The workflow uses python instead of python3. While this may work on ubuntu-latest where python is aliased to Python 3, it's inconsistent with the repository's documented commands and could cause issues if the alias is not present. Should use python3 test_all.py or explicitly use python3 -m pattern for consistency.

Suggested change
python -m pip install --upgrade pip
pip install proto-schema-parser structured-classes
- name: Install Node.js dependencies
run: npm ci
- name: Run test suite
run: python test_all.py
python3 -m pip install --upgrade pip
pip3 install proto-schema-parser structured-classes
- name: Install Node.js dependencies
run: npm ci
- name: Run test suite
run: python3 test_all.py

Copilot uses AI. Check for mistakes.
Copilot AI changed the title [WIP] Add testing pipeline to run tests on commits Add GitHub Actions CI pipeline for automated testing Nov 6, 2025
Copilot AI requested a review from rijesha November 6, 2025 02:17
@rijesha
rijesha merged commit 4f05b08 into main Nov 6, 2025
8 checks passed
@rijesha
rijesha deleted the copilot/add-testing-pipeline branch December 18, 2025 17:32
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.

Add testing pipeline

3 participants