You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
For the very first time when I run the test command lage is triggering the test scripts. But when I add/update test file without change in any source file lage is not triggering the test case and return the cached state.
I have to manually pass --no-cache options which is a pain as it triggers script in all the packages.
Below is my lage config:
module.exports={pipeline: {build: ['^build'],lint: ['^build'],test: ['^build'],},ignore: ['*.md','.vscode/**'],cacheOptions: {// These are the subset of files in the package directories that will be saved into the cacheoutputGlob: ['dist/**/*','!node_modules'],// These are relative to the git root, and affects the hash of the cache// Any of these file changes will invalidate cacheenvironmentGlob: ['*.js','*.json','*.yml'],},npmClient: 'yarn',};
To Reproduce
Steps to reproduce the behavior:
Create a mono repo with above lage config file.
Run lage test
Update any test file
Run lage test
Check the lage output
Expected behavior
Lage should run the test case of the updated package but it return the cached result
@soumyart did you try adding the *.js files to the test task inputs?
E.g:
module.exports={pipeline: {build: ['^build'],lint: ['^build'],test: {dependsOn: ['^build'],inputs: ['**/*.js','*.json','*.yml']},// Put the inputs here, },ignore: ['*.md','.vscode/**'],cacheOptions: {// These are the subset of files in the package directories that will be saved into the cacheoutputGlob: ['dist/**/*','!node_modules'],// These are relative to the git root, and affects the hash of the cache// Any of these file changes will invalidate cacheenvironmentGlob: [],// Probably should avoid adding things in here because any changes here would invalidate all caches},npmClient: 'yarn',};
Describe the bug
For the very first time when I run the test command lage is triggering the test scripts. But when I add/update test file without change in any source file lage is not triggering the test case and return the cached state.
I have to manually pass
--no-cache
options which is a pain as it triggers script in all the packages.Below is my lage config:
To Reproduce
Steps to reproduce the behavior:
lage test
lage test
Expected behavior
Lage should run the test case of the updated package but it return the cached result
Environment/Troubleshooting
The text was updated successfully, but these errors were encountered: