v2.1.1 Git History Treemap Improvements & Auto-Update Conda Env
🚀 Features
-
Auto update Conda Environment by @JohT in #353
- Update conda environment if its outdated compared to the
environment.yml
: Previously, Jupyter notebooks failed to import libraries that had been added lately. An already existing Conda environment "codegraph" was sufficient, even it was outdated. Now, it will automatically be updated if necessary so that there are no more import errors. - Add PREPARE_CONDA_ENVIRONMENT to skip Conda environment setup: Previously, Conda environment activation was skipped when the
codegraph
environment was already active. Now,PREPARE_CONDA_ENVIRONMENT="false
needs to be set additionally to explicitly skip that part. This is needed in GitHub Action pipelines becauseconda init
doesn't work as expected but is taken care of by setup-miniconda. - Introduce script testing: The first (for now framework-free) script test is implemented in the pipeline 🎉.
- Update conda environment if its outdated compared to the
-
Improve git history treemap visualizations and uncover pairwise changed files by @JohT in #352
- Add CHANGED_TOGETHER_WITH edge for git file nodes: With this change, there is now the new relationship
CHANGED_TOGETHER_WITH
betweenFile
nodes (git as well as code) including a propertycommitCount
on how often they were changed together. This adds an additional way of uncovering dependencies of files, besides code dependencies via imports.
- Add CHANGED_TOGETHER_WITH edge for git file nodes: With this change, there is now the new relationship
📈 Reports
- Improve git history treemap visualizations and uncover pairwise changed files by @JohT in #352
- Add plot highlighting directories with very few authors
- Add treemap plot that shows commit counts of pairwise changed files: Now you can additionally see which areas in the code base where changed in conjunction with at least one other file.
⚙️ Optimizations
-
Auto update Conda Environment by @JohT in #353
- Improve change file detection:
- Log output is now colored (red = error, dark grey = info)
- Given
--paths
are now validated - File statistics are now correctly extracted for MacOS and Linux
- Improve change file detection:
-
Improve git history treemap visualizations and uncover pairwise changed files by @JohT in #352
🛠 Fixes
- Auto update Conda Environment by @JohT in #353
- Defer download URL check for offline mode: Previously, it was not possible to get an artifact from the download script in offline mode, even if it had already been downloaded and ready to use in the cache. This is now resolved by deferring the check of the URL until right before the actual download, since it needs an internet connection.
- Fix wrong variable for Jupyter notebook directory: Conda environment creation still used an old variable from another file that kept working since these files are called consecutively. However, can break easily and is now resolved.
📦 Dependency Updates
- Update actions/download-artifact digest to 95815c3 by @renovate in #351
- Update actions/cache digest to 5a3ec84 by @renovate in #350
Full Changelog: v2.1.0...v2.1.1