Skip to content

Conversation

@gibiw
Copy link
Contributor

@gibiw gibiw commented Nov 13, 2025

  • Added functionality to sort results by StartTime when a RunID is provided, ensuring proper order during uploads.
  • Implemented logic to set StartTime and EndTime to nil after processing, enhancing data integrity.
  • Introduced unit tests to validate sorting behavior, handling of nil StartTime values, and truncation of long test titles to 255 characters.
  • Updated the Upload method to include title truncation and sorting logic, improving overall result management.

Note

Sort results by StartTime for existing runs, clear time fields, and truncate titles to 255 runes with comprehensive tests.

  • Result service (internal/service/result/result.go):
    • Sorts results by Execution.StartTime (ascending; nils last) when RunID is provided, then clears StartTime/EndTime on each result before upload.
    • Truncates overly long test titles to 255 runes (with warning) to ensure valid payloads.
  • Tests:
    • Adds fixtures for varied StartTime values, nil StartTime, and long/UTF-8 titles in fixture_test.go.
    • Extends result_test.go with cases verifying sorting order, nil-time handling, time clearing, and safe UTF-8/rune-based title truncation.

Written by Cursor Bugbot for commit 8f0611d. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

- Added functionality to sort results by StartTime when a RunID is provided, ensuring proper order during uploads.
- Implemented logic to set StartTime and EndTime to nil after processing, enhancing data integrity.
- Introduced unit tests to validate sorting behavior, handling of nil StartTime values, and truncation of long test titles to 255 characters.
- Updated the Upload method to include title truncation and sorting logic, improving overall result management.
@gibiw gibiw force-pushed the improve/allure-upload branch from 83f0557 to 8f0611d Compare November 13, 2025 19:16
@gibiw gibiw merged commit addd3e3 into main Nov 13, 2025
6 checks passed
@gibiw gibiw deleted the improve/allure-upload branch November 13, 2025 19:18
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.

2 participants