I believe this should be the content of the SSTATE_MIRRORS variable.
David, assigning this one to you quite randomly: feel free to pass it onto someone else if needed.
Hi Belen, 1) First of all, the current code is trying to display "task.path_to_sstate_obj" and "task.work_directory", both of which appear to be empty in the database. This appears to be a backend defect, not a GUI defect. Are these obsolete fields, or just not populated? 2) You mentioned the config var "SSTATE_MIRRORS"? There is no such value in the database. The closest is "SSTATE_DIR" ( which is "/home/abc/toaster_1_6/build/sstate-cache" in my database). Should perhaps the task page show this? The name of the file searched... = basename(SSTATE_DIR) The locations where the above file was searched... = dirname(SSTATE_DIR) I do not see a list of mirrors, unless SSTATE_DIR is really a list of paths, where the cache file name is the same ("sstate-cache") and the paths perhaps many? The name of the file searched... = basename(SSTATE_DIR[0]) The locations where the above file was searched... = split(SSTATE_DIR,':') | sed -e "s|/sstate-cache||g" - David
(In reply to comment #2) > Hi Belen, > > 1) First of all, the current code is trying to display > "task.path_to_sstate_obj" and "task.work_directory", both of which appear to > be empty in the database. > > This appears to be a backend defect, not a GUI defect. Are these obsolete > fields, or just not populated? task.path_to_sstate_obj is what the "File searched for" item should be set to. It is indeed empty, but I believe Alex is on his way to bringing it in (bug 5252). task.workdirectoy is a different thing (is supposed to show the code executed by a certain task), and we have moved it to 1.7 (bug 5255). > > 2) You mentioned the config var "SSTATE_MIRRORS"? Mmm, maybe I understood Alex wrong. It might be an idea to ping him to clarify. > > There is no such value in the database. The closest is "SSTATE_DIR" ( which > is "/home/abc/toaster_1_6/build/sstate-cache" in my database). > > Should perhaps the task page show this? > > The name of the file searched... = basename(SSTATE_DIR) > The locations where the above file was searched... = dirname(SSTATE_DIR) > > I do not see a list of mirrors, unless SSTATE_DIR is really a list of paths, > where the cache file name is the same ("sstate-cache") and the paths perhaps > many? > > The name of the file searched... = basename(SSTATE_DIR[0]) > The locations where the above file was searched... = split(SSTATE_DIR,':') > | sed -e "s|/sstate-cache||g" > > - David
Re-assigning to Alex for his review of the issues and backend. My database has no "SSTATE_MIRRORS" value, but that may be because there are none in my project setup. There is a "SSTATE_DIR" entry.
Just to clarify, the "URI(s) searched" field should show all the locations where the sstate object was searched, which I guess means SSTATE_DIR and SSTATE_MIRRORS (if any have been set up).
Reassiging to David, Belen is correct, we need to display SSTATE_DIR SSTATE_MIRRORS, processed; The processing part of the SSTATE_MIRRORS is: * each entry is separated by new-line * we need to take the second field from each entry, where the fields are separated by spaces Hope this helps, Alex
commit efa4a98fe4cea73fb8709d205230046e2a546bbf
Verified in ea90bd054c449a8e19c474c8bfa8c289f692c33f.