{"id":15105323,"url":"https://github.com/laban254/simple-ci-system","last_synced_at":"2026-01-03T23:41:29.524Z","repository":{"id":256081526,"uuid":"854278663","full_name":"Laban254/simple-CI-system","owner":"Laban254","description":"Simple CI System automates code change detection, test execution, and runner management.","archived":false,"fork":false,"pushed_at":"2024-09-08T21:21:18.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-18T19:12:01.966Z","etag":null,"topics":["flask"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Laban254.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-08T20:58:54.000Z","updated_at":"2024-09-08T21:21:21.000Z","dependencies_parsed_at":"2024-09-08T22:20:43.094Z","dependency_job_id":"a310192f-7a71-45d8-80ce-bb9e3b94c57e","html_url":"https://github.com/Laban254/simple-CI-system","commit_stats":null,"previous_names":["laban254/simple-ci-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laban254%2Fsimple-CI-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laban254%2Fsimple-CI-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laban254%2Fsimple-CI-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laban254%2Fsimple-CI-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Laban254","download_url":"https://codeload.github.com/Laban254/simple-CI-system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230326807,"owners_count":18209051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask"],"created_at":"2024-09-25T20:23:25.785Z","updated_at":"2026-01-03T23:41:29.480Z","avatar_url":"https://github.com/Laban254.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple CI System\n\n## Overview\n\n **Simple CI System** is a basic Continuous Integration (CI) tool designed to automate the process of detecting code changes, running tests, and managing test runners. \n\n## Features\n\n-   **Commit Detection**: Monitors a Git repository for new commits and updates a tracking file when changes are detected.\n-   **Runner Registration**: Allows test runners to register themselves with the CI system, enabling them to receive and execute test jobs.\n-   **Commit Dispatching**: Distributes new commits to available registered test runners for execution.\n-   **Test Execution**: Executes tests based on the new commits and reports the results back to the CI system.\n\n## Components\n\n1.  **Observer**: Continuously monitors the Git repository for new commits and updates the commit ID file.\n2.  **Dispatcher**: Manages the registration of test runners and dispatches new commits to them for testing.\n3.  **Runner**: Executes tests on the code for the specified commit and sends the results back to the CI system.\n4.  **Health Check**: Periodically checks the status of registered runners to ensure they are responsive.\n\n## How It Works\n\n1.  **Commit Detection**:\n    \n    -   The system uses a script to check for new commits in the repository.\n    -   When a new commit is detected, the system updates a `.commit_id` file.\n2.  **Runner Registration**:\n    \n    -   Test runners can register themselves with the CI system by sending a POST request to the `/register` endpoint.\n    -   Registered runners are tracked and can receive test jobs.\n3.  **Commit Dispatching**:\n    \n    -   Upon detecting a new commit, the CI system dispatches the commit to a registered runner by sending a POST request to the runner's `/runtest` endpoint.\n4.  **Test Execution**:\n    \n    -   The test runner executes the tests for the specified commit and sends the results back to the CI system via the `/results` endpoint.\n5.  **Health Check**:\n    \n    -   The system periodically checks the health of registered runners to ensure they are operational.\n    -   Unresponsive runners are removed from the list of registered runners.\n\n## Setup\n\n1.  **Clone the Repository**:\n    \n   \n    \n    `git clone https://github.com/yourusername/simple-ci-system.git\n    cd simple-ci-system` \n    \n2.  **Install Dependencies**: Ensure you have Python and the necessary libraries installed.\n    \n3.  **Configure Repository Path**: Update the `REPO_PATH` in the `main.py` and `update_repo.sh` scripts to point to your local clone of the test repository.\n    \n    -   Test Repository: [Laban254/test_repo](https://github.com/Laban254/test_repo)\n4.  **Run the CI System**:\n    \n \n    \n    `python main.py` \n    \n5.  **Run the Test Runner**: Ensure that the test runner script is properly configured and executable.\n## Directory Structure\n\n-   `main.py`: The main script that runs the CI system.\n-   `test_runner_script.sh`: A script executed by the test runner to run tests.\n-   `update_repo.sh`: A script that updates the local repository and checks for new commits.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaban254%2Fsimple-ci-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaban254%2Fsimple-ci-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaban254%2Fsimple-ci-system/lists"}