Project

General

Profile

Actions

Feature #724

closed

Cache control interface for ldv-git

Added by Pavel Shved over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
LDV-Git
Start date:
01/27/2011
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

As Alexey mentioned at the scrum today, compile-cache in ldv-git is a powerful optimization, but sometimes the user needs to clean it (for example, after bugs like #718 are fixed). An interface like ldv-git drop-cache would be nice.

Another nice feature would be ldv-git drop-older-caches, which is intended to dropping caches of commits that are older than the current one. Useful if the user knows that he's not going to re-check them anymore.

Actions #1

Updated by Pavel Shved over 13 years ago

  • Status changed from Open to Resolved

Both features are added in revisions b92427ab and d080a5e.

Actions #2

Updated by Alexey Khoroshilov over 13 years ago

Всё бы хорошо, только prefix=/opt make install почему-то не обновляет ldv-git.

Actions #3

Updated by Alexey Khoroshilov over 13 years ago

  • Status changed from Resolved to Open

After installation the new version using make install-ldv-git, ldv-git drop-cache and running ldv-git --force --no-update-meta --keep-work --rule=08_1 --filter=isdn/capi/capidrv check, I have got the following error:

ldv-kmanager: NORMAL: Description name = "1".
ldv-kmanager: NORMAL: Kernel successfully prepared.
ldv-git: NORMAL: Generating list of changed files...
Died at /home/tester/ldv/opt/bin/../ldv-git/metadiff line 8.
ldv-git: NORMAL: Reading list of changed files...
ldv-git: NORMAL: Filtering changed files...
ldv-git: NORMAL: Generating sets of C files that form drivers...
Died at /home/tester/ldv/opt/bin/../ldv-git/metadeps line 39.
ldv-git: NORMAL: List of drivers that would be verified:
ldv-git: NORMAL: ----------------------------------------------
ldv-git: NORMAL: Total: 0 drivers
ldv-git: NORMAL: Generating build commands for all drivers...
Can't open metadata file '/home/tester/ldv/workdir/envs/1/metadata/commands-4162cf64973df51fc885825bc9ca4d055891c49f': No such file or directory at /home/tester/ldv/opt/bin/../shared/perl/MetaUtils.pm line 76.
metadriver for /home/tester/ldv/workdir/envs/1/metadata/meta-4162cf64973df51fc885825bc9ca4d055891c49f at /home/tester/ldv/opt/bin/ldv-git line 719, <GEN6> line 1.
Actions #4

Updated by Pavel Shved over 13 years ago

The metadata file in /home/tester/ldv/workdir/envs/1/metadata/meta-4162cf64973df51fc885825bc9ca4d055891c49f doesn't exist.

LDV-Git's cache cleanup procedure has nothing to do with it. It doesn't touch such files.

However, I compared the path with the path I saw in bug #718, and noticed that they differ...

/home/tester/.ldv/ldv/envs/1/work/work-4162cf6
/home/tester/ldv/workdir/envs/1/metadata/meta-4162cf6

Did you fiddle with LDVGIT_BASE environment variable?

Actions #5

Updated by Alexey Khoroshilov over 13 years ago

ldv-git drop-cache and ldv-git drop-older-caches works, the only open issue is some old caches are not removed by ldv-git --rule=all drop-older-caches.

Actions #6

Updated by Pavel Shved over 13 years ago

  • Status changed from Open to Resolved

They now do. See revision 87223b3.

Actions #7

Updated by Alexey Khoroshilov over 13 years ago

  • Status changed from Resolved to Closed

I already have no environment to check the fix, so I suggest to call it fixed and open a new bug if any issues arose.

Actions

Also available in: Atom PDF