Skip to content

Conversation

@ninjinkun
Copy link
Contributor

@ninjinkun ninjinkun commented Aug 20, 2025

#1112 contained wrong code generated by Claude Code because I asked Claude cherry-pick the recent commits in main branch then integrate them into the Smart Tests CLI code base. I reverted them #1120, and then merged main branch into smart-tests branch, and then resolved conflicts manually.

This PR includes following features:

  • Fail-fast mode
  • PTS v2
  • Bug fix and improvement

@ninjinkun ninjinkun changed the base branch from smart-tests to smart-tests-revert-backport-2 August 21, 2025 10:11
Base automatically changed from smart-tests-revert-backport-2 to smart-tests August 21, 2025 10:18
@ninjinkun ninjinkun changed the title Backport the recent CLI changes by merging main Redo backporting the recent CLI changes by merging main Aug 22, 2025
@ninjinkun ninjinkun marked this pull request as ready for review August 22, 2025 01:26
@ninjinkun ninjinkun requested a review from Copilot August 22, 2025 01:28
Copy link
Contributor

Copilot AI left a comment

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 represents a comprehensive backport of recent CLI changes from the main branch into the smart-tests branch, including major architectural improvements and new features. The changes include implementing fail-fast mode, adding PTS v2 support, and various bug fixes and enhancements.

Key changes include:

  • Implementation of fail-fast mode with validation and error handling
  • Addition of PTS v2 support through workspace state management
  • New command structure with separated Command enum and enhanced tracking
  • Comprehensive test coverage for new typer types and functionality

Reviewed Changes

Copilot reviewed 53 out of 54 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/utils/test_typer_types.py New comprehensive test suite for typer type parsing with edge cases
tests/utils/test_fail_fast_mode.py New tests for fail-fast mode validation functionality
tests/test_runners/test_pytest.py Enhanced pytest parser tests with longrepr handling
smart_tests/utils/typer_types.py Major refactor to class-based type system with backward compatibility
smart_tests/utils/fail_fast_mode.py New fail-fast mode implementation with validation logic
smart_tests/utils/launchable_client.py Added workspace state caching and PTS v2 support
Java source files Major commit ingestion refactor with file collection support
Comments suppressed due to low confidence (1)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

command.extend(_build_proxy_option(os.getenv("HTTPS_PROXY")))
command.extend([
"-jar",
cygpath(jar_file_path),
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

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

The command line argument order has changed - the repository name argument is now added after all options, but the old command format 'ingest:commit' has been removed. This could break existing JAR file compatibility.

Copilot uses AI. Check for mistakes.
@ninjinkun
Copy link
Contributor Author

ninjinkun commented Aug 22, 2025

@Konboi Please review this. You don’t need to check it in detail, just take a quick look to see that the backport matches your intention and doesn't have wrong AI-generated code.

@ninjinkun ninjinkun requested a review from Konboi August 22, 2025 02:45
Copy link
Contributor

@Konboi Konboi left a comment

Choose a reason for hiding this comment

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

Checked. I can't find any issues

@ninjinkun
Copy link
Contributor Author

@Konboi Thank you!

@ninjinkun ninjinkun merged commit dcc66f9 into smart-tests Aug 25, 2025
4 checks passed
@ninjinkun ninjinkun deleted the smart-tests-resolve-conflict3 branch August 25, 2025 06:33
@ninjinkun ninjinkun added the Smart Tests CLI The next gen CLI label Aug 25, 2025
@github-actions github-actions bot mentioned this pull request Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Smart Tests CLI The next gen CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants