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

feat(schedule): Log descriptive cron schedules #30472

Merged
merged 12 commits into from
Jul 31, 2024

Conversation

Sukhdev2002
Copy link
Contributor

Changes

Context

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@rarkins rarkins changed the title feat: Log descriptive cron schedules feat(schedule): Log descriptive cron schedules Jul 30, 2024
Copy link
Collaborator

@rarkins rarkins left a comment

Choose a reason for hiding this comment

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

Needs tests, including if an invalid cron string is passed

@Sukhdev2002
Copy link
Contributor Author

Needs tests, including if an invalid cron string is passed

test case already written for invalid string types

@rarkins
Copy link
Collaborator

rarkins commented Jul 30, 2024

You had tests before but they're missing now

@Sukhdev2002
Copy link
Contributor Author

However, all the scenarios have already been covered in the previous test cases. Additionally, the test cases I added earlier will not run for the function where I made the changes.

@rarkins
Copy link
Collaborator

rarkins commented Jul 30, 2024

We don't add features without tests to verify that the feature works

@Sukhdev2002
Copy link
Contributor Author

We don't add features without tests to verify that the feature works

added please check

@rarkins rarkins enabled auto-merge July 31, 2024 16:09
@rarkins rarkins added this pull request to the merge queue Jul 31, 2024
Merged via the queue into renovatebot:main with commit ad7b3ce Jul 31, 2024
38 checks passed
@renovate-release
Copy link
Collaborator

🎉 This issue has been resolved in version 38.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

const cronScheduleSummary = cronstrue.toString(scheduleText, {
throwExceptionOnParseError: false,
});
logger.debug(`Human-readable summary for cron:: ${cronScheduleSummary}`);
Copy link
Member

Choose a reason for hiding this comment

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

this causes a weird debug message for all later based strings as we try to parse as cron first 😕

Copy link
Member

Choose a reason for hiding this comment

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

@rarkins we should refactor to only log if it's a cron expression and not a later expression.

Copy link
Member

Choose a reason for hiding this comment

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

this message is also logged multiple times (for each branch)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants