Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Update reference.json to use relative paths #1251

Merged
merged 229 commits into from Sep 14, 2023

Conversation

ivadym
Copy link
Contributor

@ivadym ivadym commented Sep 13, 2023

This PR:

In order to be able to copy the balsamic cache from stage to production, we need to start saving the cache reference file links as relative paths (reference.json).

To maintain simplicity, the config.json reference file will continue to point to stage files, as the cache will be built primarily in the stage from this point onward.

Changed:

  • Update reference.json file to use relative paths

Review and tests:

  • Tests pass

    • balsamic init. Saves relative paths.
    Screenshot 2023-09-13 at 10 48 47
    • balsamic config case. Reads relative paths, but saves them as absolute.
    Screenshot 2023-09-13 at 10 53 02
  • Code review

  • New code is executed and covered by tests, and test approve

@ivadym ivadym requested a review from a team as a code owner September 13, 2023 08:19
@ivadym ivadym mentioned this pull request Sep 13, 2023
6 tasks
@codecov
Copy link

codecov bot commented Sep 13, 2023

@ivadym ivadym linked an issue Sep 13, 2023 that may be closed by this pull request
6 tasks
Copy link
Collaborator

@mathiasbio mathiasbio left a comment

Choose a reason for hiding this comment

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

Amazing job, so clean. This will also make it easier to run tests on feature-branches where you want to copy over an existing cache and make some changes, now you don't need to modify the reference.json anymore! Just point to the new path. Sweet! : )
⭐ 🌟 ⭐ 🌔 ⭐ ⭐ ⭐
🌲 🌲 🌲 🌲 🌲 🌲 🌲
🦖 🦖 🦖 🦖 🦖 🦖 🚒

tests/conftest.py Outdated Show resolved Hide resolved
BALSAMIC/commands/config/pon.py Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
ivadym and others added 2 commits September 14, 2023 08:43
Co-authored-by: Mathias Johansson <math.joh.bio@gmail.com>
Co-authored-by: Mathias Johansson <math.joh.bio@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ivadym ivadym merged commit adebba1 into develop Sep 14, 2023
9 checks passed
@ivadym ivadym deleted the relative-cache-config branch September 14, 2023 06:50
@ivadym ivadym assigned ivadym and unassigned ivadym Sep 14, 2023
@ivadym ivadym self-assigned this Sep 22, 2023
@ivadym ivadym mentioned this pull request Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Archived
Development

Successfully merging this pull request may close these issues.

Optimise build of cache
2 participants