Skip to content

fix(syncer): restore the connector test build after the Jira fixture signature change - #21713

Closed
ccclucky wants to merge 1 commit into
infiniflow:mainfrom
ccclucky:fix/syncer-jira-fixture
Closed

ccclucky wants to merge 1 commit into
infiniflow:mainfrom
ccclucky:fix/syncer-jira-fixture

Conversation

@ccclucky

Copy link
Copy Markdown
Contributor

Summary

main currently fails to compile internal/syncer/connector:

internal/syncer/connector/jira_test.go:274:32: not enough arguments in call to jiraFixtureIssue
internal/syncer/connector/jira_test.go:280:34: not enough arguments in call to jiraFixtureIssue

Two changes merged inside the same hour and each was green on its own base:

The merge is textually clean but semantically broken, so ragflow_tests_infinity, ragflow_tests_elasticsearch and ragflow_go_integration are red on 350df0863.

Fix

The two call sites now pass the timestamp through the helper and no longer overwrite fields.updated afterwards. Behaviour of the test is unchanged: the in-window issue is stamped 10:00:00, the past-window issue 10: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.911s
  • CGO_ENABLED=0 go test -count=5 -run Jira ./internal/syncer/connector/ → all Jira tests pass on every run

The ragflow_go_integration failure on 350df0863 is a separate, unrelated flake (TempDir RemoveAll cleanup: directory not empty in TestIntegration_MultiInstanceSharedConsumerNoOverExecution).

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.
@ccclucky

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 87ed198d-54b9-456c-a7c0-d1f7b9a31588
Commits

Reviewing files that changed from the base of the PR and between 350df08 and ef61d99.

Files selected for processing: 1
  • internal/syncer/connector/jira_test.go

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

Walkthrough

The Jira window-end sync test now supplies issue update timestamps to jiraFixtureIssue. It retains the existing timestamps, issue identifiers, and attachment setup.

Changes: Jira window test

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: Normal

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 jiraFixtureIssue to 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: Passed 5
Check name Status Explanation
Title check Passed 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…
Description check Passed The description follows the repository template's Summary section. It explains the problem: main fails to compile internal/syncer/connector because two merged changes (#21630 and #21577) conflict sema…
Docstring Coverage Passed 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. Documentat…
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.
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 (#21630 and #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.

❤️ Share

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.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ccclucky

Copy link
Copy Markdown
Contributor Author

main is still red on exactly this build error at HEAD c10fc5354: the sep-tests run on main (40884334518) fails three workflows with

internal/syncer/connector/jira_test.go:274:32: not enough arguments in call to jiraFixtureIssue
internal/syncer/connector/jira_test.go:280:34: not enough arguments in call to jiraFixtureIssue
FAIL	ragflow/internal/syncer/connector [build failed]

ragflow_tests_infinity, ragflow_tests_elasticsearch and ragflow_go_integration are therefore red for every PR whose base contains 3f8aab31b + a55dc…/#21630, regardless of what those PRs touch.

This PR is the two-call-site fix (one file, internal/syncer/connector/jira_test.go, +2 −4) on head ef61d99e7, verified locally with CGO_ENABLED=0 go vet ./internal/syncer/connector/, go test -count=1 (ok 1.911s) and -count=5 -run Jira. Test behaviour is unchanged: the in-window issue is stamped 10:00:00, the past-window one 10:00:45.

@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 ragflow_* jobs stay skipped until a maintainer approves them, so this PR cannot show green on its own.

@coderabbitai coderabbitai Bot mentioned this pull request Oct 29, 2026
@ccclucky

Copy link
Copy Markdown
Contributor Author

Upstream fixed this independently while this PR was open, so the two now overlap exactly.

  • fix ut #21714 ("fix ut", merged as a609e62 at 14:07Z) changes internal/syncer/connector/jira_test.go:274 and :280 to jiraFixtureIssue(server.URL, "<timestamp>") and drops the follow-up ["updated"] assignments — the same hunks this PR carries, byte for byte.
  • main at a609e62 therefore no longer needs this patch; jiraFixtureIssue is func jiraFixtureIssue(baseURL, updated string) and every call site passes two arguments.

This PR is redundant. Suggest closing it without merging — nothing in it is unique to this branch.

@JinHai-CN JinHai-CN closed this Oct 30, 2026
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