codess-aus / codess-aus/AINativeDemo

Demo: Fix flaky checkout ID test through agent PR workflow

Open Beginner friendly
#3 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
0
Forks
0
Avg merge
14m
Merged PRs (30d)
1

Description

## Goal
Make the checkout ID test deterministic so it can run reliably in CI.

## Context
`demo/python_app_demo/tests/test_flaky_checkout_id.py` currently generates a random checkout ID and skips the test. Randomness means the assertion can pass or fail unpredictably.

## Acceptance criteria
- Replace uncontrolled randomness with deterministic test behavior.
- Remove the skip marker.
- Preserve the assertion that the checkout ID is even.
- Run the targeted test successfully.
- Run the complete test suite successfully.
- Keep the change limited to the test and directly related files.

## Demo workflow
This issue is intended to be assigned to a coding agent. The agent should implement the change and open a pull request. A human must review the diff, confirm CI is green, approve the pull request, and own the merge decision.

## Completion statement
At merge time, the human reviewer should say: “I checked the diff. I own this merge.”

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with demo/python_app_demo/tests/test_flaky_checkout_id.py and run the targeted test to observe its current behavior. Make the checkout ID generation deterministic, remove the skip marker, preserve the even-ID assertion, and run both the targeted test and complete test suite successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.