Repository navigation
Conversation
infiniflow#21630 changed jiraFixtureIssue to take the issue's updated timestamp, and infiniflow#21577 added TestJiraSyncSessionDropsIssuesPastWindowEnd against the older one-argument form. The two merged cleanly but leave the connector test package uncompilable, so the Jira window test now passes its timestamps through the helper instead of patching fields afterwards.
|
@coderabbitai review |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Update Jira test fixtures internal/syncer/connector/jira_test.go |
The test passes each issue’s update timestamp to jiraFixtureIssue instead of assigning the field afterward. It retains the existing timestamps, identifiers, and attachment setup. |
Priority:
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Other
Possibly related PRs
- infiniflow/ragflow#21630: This PR added Jira window tests and changed the Jira query upper bound; this change updates fixture calls in those tests.
- infiniflow/ragflow#21577: This PR changed
jiraFixtureIssueto accept configurable update timestamps; this change updates the affected call sites.
Suggested reviewers: flyingwhit
Merge Risk: 
Minimal · up to ef61d
-
No actionable merge-blocking risk remains in this test-fixture-only change.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title names the fix (restoring the connector test build) and the cause (the Jira fixture signature change). It matches the changeset, which passes the updated timestamp through jiraFixtureIssue in two test call sites so the package compiles again. The title is specific and clear, and it is under the usual length guideline at 85 characters.
Full details: Description check
-
Explanation
The description follows the repository template's Summary section. It explains the problem: main fails to compile internal/syncer/connector because two merged changes (
#21630and#21577) conflict semantically. It also describes the fix, which passes the timestamp through the helper and removes the manual fields.updated overwrite, and it notes that test behavior is unchanged. A Test plan section with commands and results is included as well. The description does not use the template's heading text exactly, but it covers the required information.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks the window’s edge,
And sets each timestamp in its place.
The fixtures keep their keys and IDs,
With attachments cleared as before.
The test hops onward, neat and brief.
Comment @coderabbitai help to get the list of available commands.
|
|
This PR is the two-call-site fix (one file, @wangq8 — you merged both PRs whose bases collide here (#21630 and #21577); could you approve the workflow run on this head and merge it? A fork PR's |
|
Upstream fixed this independently while this PR was open, so the two now overlap exactly.
This PR is redundant. Suggest closing it without merging — nothing in it is unique to this branch. |
Summary
maincurrently fails to compileinternal/syncer/connector:Two changes merged inside the same hour and each was green on its own base:
jiraFixtureIssueto take the issue'supdatedtimestamp (jiraFixtureIssue(baseURL, updated string)).TestJiraSyncSessionDropsIssuesPastWindowEnd, which builds its fixtures with the older one-argument call and then patchedfields.updatedby hand.The merge is textually clean but semantically broken, so
ragflow_tests_infinity,ragflow_tests_elasticsearchandragflow_go_integrationare red on350df0863.Fix
The two call sites now pass the timestamp through the helper and no longer overwrite
fields.updatedafterwards. Behaviour of the test is unchanged: the in-window issue is stamped10:00:00, the past-window issue10:00:45.Test plan
CGO_ENABLED=0 go vet ./internal/syncer/connector/CGO_ENABLED=0 go test -count=1 ./internal/syncer/connector/→ok ragflow/internal/syncer/connector 1.911sCGO_ENABLED=0 go test -count=5 -run Jira ./internal/syncer/connector/→ all Jira tests pass on every runThe
ragflow_go_integrationfailure on350df0863is a separate, unrelated flake (TempDir RemoveAll cleanup: directory not emptyinTestIntegration_MultiInstanceSharedConsumerNoOverExecution).