Skip to content

Add guard to time stamp if event fails - #907

Merged
attiasas merged 2 commits into
jfrog:devfrom
attiasas:fix_timestamp_issue
Oct 5, 2026
Merged

attiasas merged 2 commits into
jfrog:devfrom
attiasas:fix_timestamp_issue

Conversation

@attiasas

@attiasas attiasas commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator
  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....
  • All static analysis checks passed.
  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • Updated the Contributing page / ReadMe page / CI Workflow files if needed.
  • All changes are detailed at the description. if not already covered at JFrog Documentation, new documentation have been added.

Summary by CodeRabbit

  • Bug Fixes
    • Command results now record their creation time automatically. Setting a zero timestamp leaves the existing recorded time unchanged.

@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4330ba96-2ae6-4813-9ce9-2eb0a806f540

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1c01bc9c-727f-4c97-bc4c-eff312c015de
📥 Commits

Reviewing files that changed from the base of the PR and between 04e966f and 0c32abc.

📒 Files selected for processing (2)
  • utils/results/results.go
  • utils/results/results_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Command results now record a start time when created. The setter updates that time only when it receives a non-zero value. A test covers initialization and setter behavior.

Changes

Command result timestamps

Layer / File(s) Summary
Initialize and preserve start time
utils/results/results.go, utils/results/results_test.go
NewCommandResults initializes StartTime. SetStartTime ignores zero values. The test checks initialization, an explicit timestamp, and preservation when the setter receives a zero value.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: eranturgeman

Merge Risk: ⚪ Minimal · up to 0c32a

No actionable regression is established in the inspected paths. The change appears mergeable.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title refers to a timestamp guard, which matches the change that ignores zero start times. The reference to an event failing is not supported by the changes.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@attiasas attiasas added bug Something isn't working safe to test Approve running integration tests on a pull request labels Oct 4, 2026
@attiasas
attiasas requested a review from a team October 4, 2026 08:59
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Oct 4, 2026
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Oct 4, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Oct 4, 2026
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Oct 4, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Oct 4, 2026
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


@attiasas
attiasas merged commit 309b3d8 into jfrog:dev Oct 5, 2026
121 of 122 checks passed
@attiasas
attiasas deleted the fix_timestamp_issue branch October 5, 2026 07:16

This branch was previously deployed

1 inactive deployment
frogbot — 33925422 Deployed Oct 4, 2026 by attiasas via scan-pull-request #4641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants