Skip to content

Refactor/v11 push test case ready message earlier#1864

Open
luke-hill wants to merge 8 commits into
mainfrom
refactor/v11-push-test-case-ready-message-earlier
Open

Refactor/v11 push test case ready message earlier#1864
luke-hill wants to merge 8 commits into
mainfrom
refactor/v11-push-test-case-ready-message-earlier

Conversation

@luke-hill
Copy link
Copy Markdown
Contributor

Description

This attempts to bring the test case event message earlier

This breaks a couple of feature tests regarding event ordering and NME's being generated for missing ids

Type of change

Please delete options that are not relevant.

  • Refactoring (improvements to code design or tooling that don't change behaviour)

Please add an entry to the relevant section of CHANGELOG.md as part of this pull request.

Checklist:

Your PR is ready for review once the following checklist is
complete. You can also add some checks if you want to.

  • Tests have been added for any changes to behaviour of the code
  • New and existing tests are passing locally and on CI
  • bundle exec rubocop reports no offenses
  • RDoc comments have been updated
  • CHANGELOG.md has been updated

luke-hill and others added 8 commits April 8, 2026 20:16
* Replace the 2 instances of `@test_case_by_step_id`

* Add note for iVar removal

* Avoid fully the use of the fake query private method by relying entirely on the repository data;

* Add redudancy warnings;

* Remove redundancies

* Tidy up code

* Revert minor change to make tests pass

* Fix up naming conventions

* Add notes / trace for where to look next to try triage

* WIP always select the test case started message with the largest attempt counter when multiple exist

* Remove all placeholders
* Add fake query constant to generate new way of calculating attempts

* Switch attempts and initial test case started over to new system, commenting out old code

* Cleanup of boilerplate placeholder code

* Remove fake query and spec for test_case_started_by_test_case

* WIP

* WIP 2

* Remove duplicate method call that should be :no_op

* Refactor and remove fake query step that can be a :no_op

* Switch out the test_case_started_id method to use the refactored one from previous PR

* For test case started events, we always need to ensure the current test case started id is newly generated and not fetched

* Add note for new id generation
* WIP derive the id for final missing item - test_case_started_id when calling on_test_case_finished handler

* Remove `_new` suffix

* Remove private method now its no longer used

* Re-order methods
…th the handler calling update each and every time
Base automatically changed from v11/remove_fake_query to main May 15, 2026 19:38
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.

1 participant