Files
pgsql-broker/AI_USE.md
Hein 3e64f7ae2a
Some checks failed
Integration Tests / integration-test (push) Failing after -23m59s
feat(testing): add full integration test suite
This commit introduces a comprehensive integration test suite for the pgsql-broker.

The test suite includes:
- A Docker/Podman environment for running a PostgreSQL database, managed via a .
- Integration tests that cover the broker's lifecycle, including job creation, execution, and instance management.
- A GitHub Actions workflow to automate the execution of all tests on push and pull requests.
- A dedicated test configuration file () and helper test files.

refactor(worker): fix job processing transaction
- The worker's job processing now uses a single transaction to fetch and run a job, resolving a race condition where jobs were not in the 'running' state when being executed.
- The broker's database instance registration is now more robust, handling cases where another instance is already active.

The Makefile has been significantly updated to orchestrate the entire test flow, including setting up the database, starting/stopping the broker, and running unit and integration tests separately.
2026-01-02 23:08:17 +02:00

898 B

AI Usage Declaration

This Go project utilizes AI tools for the following purposes:

  • Generating and improving documentation
  • Writing and enhancing tests
  • Refactoring and optimizing existing code

AI is not used for core design or architecture decisions.
All design decisions are deferred to human discussion.
AI is employed only for enhancements to human-written code.

We are aware of significant AI hallucinations; all AI-generated content is to be reviewed and verified by humans.

    .-""""""-.
  .'          '.
/   O      O   \
:           `    :
|                |
:    .------.    :
\  '        '  /
  '.          .'
    '-......-'
  MEGAMIND AI
  [============]

    ___________
  /___________\ 
/_____________\
|   ASSIMILATE  |
|   RESISTANCE  |
|   IS FUTILE   |
\_____________/
  \___________/