Skip to content

Conversation

@cesarcoatl
Copy link
Member

No description provided.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @cesarcoatl - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

with:
path: ${{ env.JYTHON_CACHE_DIR }}
key: jy-${{ env.JYTHON_VERSION }}-${{ runner.name }}-${{ hashFiles('setup.py') }}
key: jy-${{ steps.setup-jython.outputs.jython-version }}-${{ runner.os }}-${{ steps.setup-jython.outputs.java-distribution }}-${{ steps.setup-jython.outputs.java-version }}-${{ hashFiles('setup.py') }}
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (performance): Cache key complexity has increased, verify necessity of all parameters.

Consider simplifying the cache key if possible to avoid potential cache misses due to minor variations in Java distribution or version.

Suggested change
key: jy-${{ steps.setup-jython.outputs.jython-version }}-${{ runner.os }}-${{ steps.setup-jython.outputs.java-distribution }}-${{ steps.setup-jython.outputs.java-version }}-${{ hashFiles('setup.py') }}
key: jy-${{ steps.setup-jython.outputs.jython-version }}-${{ runner.os }}-${{ hashFiles('setup.py') }}

@cesarcoatl cesarcoatl merged commit 7b29c94 into main May 1, 2024
@cesarcoatl cesarcoatl deleted the ci/jython/update-cache-jython-key branch May 1, 2024 01:37
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