Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Retry Action #261

Merged
merged 11 commits into from
Oct 25, 2024
Merged

New Retry Action #261

merged 11 commits into from
Oct 25, 2024

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Oct 25, 2024

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

A new "Step-Level Retry" GitHub Action has been added to enhance task reliability by retrying failed steps.

πŸ“Š Key Changes

  • Introduced a new action.yaml file for a retry mechanism within GitHub Actions.
  • Allows retry of a specified command with parameters for timeout, maximum attempts, and delay between retries.
  • Supports execution in both Bash and Python environments.

🎯 Purpose & Impact

  • Increased Reliability: Helps ensure that transient failures do not cause a workflow to fail permanently, improving overall robustness of automated processes.
  • Flexible Configuration: Users can customize retry behavior, aligning with specific requirements for timeout, attempt limits, and delay durations.
  • Cross-Environment Support: Supports both Python and Bash, making it versatile for user preferences or project needs.

@UltralyticsAssistant UltralyticsAssistant added the enhancement New feature or request label Oct 25, 2024
@UltralyticsAssistant
Copy link
Member

πŸ‘‹ Hello @glenn-jocher, thank you for submitting a new PR to the ultralytics/actions repository! πŸš€ This is an automated response, and an Ultralytics engineer will assist you soon. Meanwhile, please review and complete the following checklist to ensure a smooth integration of your contribution:

  • βœ… Define a Purpose: Ensure that your PR description clearly explains the purpose and impact of your new feature, and please link to any relevant issues if applicable. This helps in tracking and understanding your changes better.
  • βœ… Synchronize with Source: Make sure your branch is up to date with the main branch of ultralytics/actions. If it's behind, please update it by clicking the 'Update branch' button or by running git pull and git merge main locally to resolve any conflicts.
  • βœ… Ensure CI Checks Pass: Verify all Ultralytics Continuous Integration (CI) checks are passing. Please address any issues if some checks fail.
  • βœ… Update Documentation: Update or add any necessary documentation relevant to your new Step-Level Retry action. Documentation helps users understand how to implement and benefit from your addition.
  • βœ… Add Tests: If your action includes new logic or significant changes, ensure that appropriate tests are written and passing. Testing is crucial to maintain code quality and reliability.
  • βœ… Sign the CLA: Ensure your Contributor License Agreement is signed, especially if this is your first contribution. Please confirm by writing "I have read the CLA Document and I sign the CLA" in a new comment.
  • βœ… Minimize Changes: Try to keep your changes limited to the scope of the feature or fix you are implementing to avoid unnecessary modifications.

For more detailed guidance, please refer to our Contributing Guide. Feel free to ask any questions you might have in the comments. Thank you for enhancing Ultralytics with your contributions! ✨

@glenn-jocher glenn-jocher changed the title Create action.yaml New Retry Action Oct 25, 2024
@glenn-jocher glenn-jocher merged commit f9289af into main Oct 25, 2024
4 checks passed
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch October 25, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants