Skip to content

Conversation

@TrafalgarZZZ
Copy link
Member

Ⅰ. Describe what this PR does

  • Add logic to determine prefetcher version based on JindoFS image tag
  • Implement version parsing and comparison functions
  • Update transformFuse function to use the appropriate prefetcher version
  • Add unit tests for version parsing function

Ⅱ. Does this pull request fix one issue?

fixes #XXXX

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@fluid-e2e-bot
Copy link

fluid-e2e-bot bot commented Sep 15, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@codecov
Copy link

codecov bot commented Sep 15, 2025

Codecov Report

❌ Patch coverage is 54.23729% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.50%. Comparing base (f8fa5c3) to head (fe2eab0).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
pkg/ddc/jindocache/utils.go 47.82% 15 Missing and 9 partials ⚠️
pkg/ddc/jindocache/transform.go 76.92% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5235      +/-   ##
==========================================
- Coverage   55.51%   55.50%   -0.01%     
==========================================
  Files         443      443              
  Lines       30382    30438      +56     
==========================================
+ Hits        16867    16896      +29     
- Misses      11962    11978      +16     
- Partials     1553     1564      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Add logic to determine prefetcher version based on JindoFS image tag
- Implement version parsing and comparison functions
- Update transformFuse function to use the appropriate prefetcher version
- Add unit tests for version parsing function

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
@TrafalgarZZZ TrafalgarZZZ force-pushed the enhance/set_jindofsx_prefetcher_version_accordingly branch from dcaaa67 to 384fcb5 Compare September 15, 2025 08:49
- Update smartdata image tag from 6.2.0 to 6.9.1-202509151826
- Update fuse image tag from 6.2.0 to 6.9.1-202509151826

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
@TrafalgarZZZ
Copy link
Member Author

/test fluid-e2e

@TrafalgarZZZ TrafalgarZZZ marked this pull request as ready for review September 16, 2025 03:18
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
@TrafalgarZZZ
Copy link
Member Author

/retest

1 similar comment
@TrafalgarZZZ
Copy link
Member Author

/retest

@TrafalgarZZZ
Copy link
Member Author

/test fluid-e2e

@TrafalgarZZZ
Copy link
Member Author

/retest

4 similar comments
@TrafalgarZZZ
Copy link
Member Author

/retest

@TrafalgarZZZ
Copy link
Member Author

/retest

@TrafalgarZZZ
Copy link
Member Author

/retest

@cheyang
Copy link
Collaborator

cheyang commented Sep 16, 2025

/retest

@cheyang cheyang requested a review from frankleaf September 16, 2025 13:46

// Assume value.FuseImageTag has been set here
if len(value.FuseImageTag) != 0 {
fuseVersion, err := parseVersionFromImageTag(value.FuseImageTag)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we fail fast when
fuseVersion, err := parseVersionFromImageTag(value.FuseImageTag)
returns a non-nil error?

Copy link
Member Author

Choose a reason for hiding this comment

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

In that case, image tags are required to be in format of "X.Y.Z-xxxxxx". Users may change it to a customized tag.

wantErr bool
}{
{
name: "valid version without tag",
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about adding test case v6.2.0?

Copy link
Member Author

@TrafalgarZZZ TrafalgarZZZ Sep 17, 2025

Choose a reason for hiding this comment

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

Done. parseVersionFromImageTag now supports parsing version info from either 6.2.0 or v6.2.0.

@cheyang
Copy link
Collaborator

cheyang commented Sep 17, 2025

/test fluid-e2e

- Update regular expression to match version strings with optional 'v' prefix
- Add test cases for version strings with 'v' prefix, both with and without tags

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
@sonarqubecloud
Copy link

@TrafalgarZZZ
Copy link
Member Author

/test fluid-e2e

@TrafalgarZZZ
Copy link
Member Author

/retest

Copy link
Collaborator

@cheyang cheyang left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@fluid-e2e-bot fluid-e2e-bot bot added the lgtm label Sep 18, 2025
@fluid-e2e-bot
Copy link

fluid-e2e-bot bot commented Sep 18, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheyang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fluid-e2e-bot fluid-e2e-bot bot merged commit 34912e6 into fluid-cloudnative:master Sep 18, 2025
17 checks passed
Pikabooboo pushed a commit to Pikabooboo/fluid that referenced this pull request Sep 25, 2025
…d-cloudnative#5235)

* feat(ddc): adjust prefetcher version based on JindoFS image tag

- Add logic to determine prefetcher version based on JindoFS image tag
- Implement version parsing and comparison functions
- Update transformFuse function to use the appropriate prefetcher version
- Add unit tests for version parsing function

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>

* fix go fmt

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>

* fix go fmt

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>

* update smartdata and fuse image tags

- Update smartdata image tag from 6.2.0 to 6.9.1-202509151826
- Update fuse image tag from 6.2.0 to 6.9.1-202509151826

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>

* fix image prefix in gha e2e

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>

* enhance version parsing to support 'v' prefix

- Update regular expression to match version strings with optional 'v' prefix
- Add test cases for version strings with 'v' prefix, both with and without tags

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>

---------

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants