Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-29 Thread Clément Lassieur
Gábor Boskovits writes: > P > > Clément Lassieur ezt írta (időpont: 2018. júl. 29., > V 14:01): > >> Danny Milosavljevic writes: >> >> > Hi Tatiana, >> > >> > On Sun, 8 Jul 2018 21:48:32 +0200 >> > Tatiana Sholokhova wrote: >> > >> >> Do you have ideas on how to >> >> implement tuple

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-29 Thread Gábor Boskovits
P Clément Lassieur ezt írta (időpont: 2018. júl. 29., V 14:01): > Danny Milosavljevic writes: > > > Hi Tatiana, > > > > On Sun, 8 Jul 2018 21:48:32 +0200 > > Tatiana Sholokhova wrote: > > > >> Do you have ideas on how to > >> implement tuple comparison and other routines in SQL and guile in a

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-29 Thread Clément Lassieur
Danny Milosavljevic writes: > Hi Tatiana, > > On Sun, 8 Jul 2018 21:48:32 +0200 > Tatiana Sholokhova wrote: > >> Do you have ideas on how to >> implement tuple comparison and other routines in SQL and guile in a >> convenient and flexible way? > > sqlite3 supports row values, so the comparison

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-19 Thread Amirouche Boubekki
Fwiw, you can use bootstrap without js. Causal reply, Amirouche Le jeu. 19 juil. 2018 à 22:11, Tatiana Sholokhova a écrit : > Hi Clément, > > Thank you for the clarifications on the job structure! > > I have read your changes to the web interface and everything looks good to > me. Also, it

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-19 Thread Tatiana Sholokhova
Hi Clément, Thank you for the clarifications on the job structure! I have read your changes to the web interface and everything looks good to me. Also, it works nicely on your server. So, let's prepare for the merge. Let me know if you want me to make some fixes before the merge. In the

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-18 Thread Clément Lassieur
Hi Tatiana, Tatiana Sholokhova writes: > Could you please review the last 3 commits and maybe find some more issues > besides that? I've integrated your work onto my Cuirass instance[1], and I really like it! I had to fix a few things and adapt it[2] so that it works with multiple inputs. I

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-18 Thread Clément Lassieur
Hi Tatiana, Tatiana Sholokhova writes: > Am I right that in terms of Cuirass database derivations correspond to > jobs? Yes, but to be more precise, a job is a structure containing: - derivation - job-name - system - nix-name - eval-id The database table called "Derivations" should

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-18 Thread Clément Lassieur
Dear all, Ludovic Courtès writes: > Hello Tatiana & all, > > Ricardo Wurmus skribis: > >>> I am a bit confused about the database structure. As far as I understand, >>> there are project_name (project) and branch_name (jobset) properties, but >>> project_name is a primary key, so a project

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-17 Thread Clément Lassieur
Ricardo Wurmus writes: > You can download a copy of the Cuirass database as it is used on > berlin.guixsd.org, one of the build farms of the Guix project. I have > copied it here: > > http://bootstrappable.org/cuirass.db > > It is 12G(!), which indicates that Cuirass adds way too many

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-08 Thread Gábor Boskovits
Tatiana Sholokhova ezt írta (időpont: 2018. júl. 8., V, 21:48): > Hello all! > > Thank you for your helpful comments and ideas! > > I've committed an improved version of the pagination. As you advised I > chose and implemented (2) variant. I alter sorting order in SQL query > depending on the

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-08 Thread Danny Milosavljevic
Hi Tatiana, On Sun, 8 Jul 2018 21:48:32 +0200 Tatiana Sholokhova wrote: > Do you have ideas on how to > implement tuple comparison and other routines in SQL and guile in a > convenient and flexible way? sqlite3 supports row values, so the comparison can be written like this: select * from

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-08 Thread Tatiana Sholokhova
Hello all! Thank you for your helpful comments and ideas! I've committed an improved version of the pagination. As you advised I chose and implemented (2) variant. I alter sorting order in SQL query depending on the type of the current page border. So, now all operators (gotofirst, gotolast,

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-06 Thread Gábor Boskovits
Danny Milosavljevic ezt írta (időpont: 2018. júl. 5., Cs 10:28): > Hi Tatiana, > > On Wed, 4 Jul 2018 22:54:46 +0200 > Tatiana Sholokhova wrote: > > > If we want to maintain a link to > > the previous page we have to filter the database table entries with to > > types of filters: one with lower

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-05 Thread Danny Milosavljevic
Hi Tatiana, On Wed, 4 Jul 2018 22:54:46 +0200 Tatiana Sholokhova wrote: > If we want to maintain a link to > the previous page we have to filter the database table entries with to > types of filters: one with lower bound on the id, and the other with the > upper bound. Yeah, I know what you

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-04 Thread Jelle Licht
2018-07-04 22:54 GMT+02:00 Tatiana Sholokhova : > Hi all, > > Hi Tatiana, > I just committed the code I wrote trying to improve pagination. I screwed > up a bit with the new pagination. > The problem I encountered is following. If we want to maintain a link to > the previous page we have to

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-07-04 Thread Tatiana Sholokhova
Hi all, I just committed the code I wrote trying to improve pagination. I screwed up a bit with the new pagination. The problem I encountered is following. If we want to maintain a link to the previous page we have to filter the database table entries with to types of filters: one with lower

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-27 Thread Ludovic Courtès
Hi Tatiana, Tatiana Sholokhova skribis: > On the last week, I had fallen out of the process. I had been having exams > at the university since the beginning of June. The last exam was > rescheduled and that has affected my plans. I am sorry for that. Now the > semester is finished and I am

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-25 Thread Tatiana Sholokhova
Hello all, On the last week, I had fallen out of the process. I had been having exams at the university since the beginning of June. The last exam was rescheduled and that has affected my plans. I am sorry for that. Now the semester is finished and I am having much more time to focus on our

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-25 Thread Gábor Boskovits
Can you please send us an update on your project?

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-13 Thread Joshua Branson
Gábor Boskovits writes: > Joshua Branson ezt írta (időpont: 2018. jún. 13., Sze > 15:52): > > Tatiana Sholokhova writes: > > > Hello, > > > > Thank you for your reviews! > > > > I've just fixed codestyle issues and replaced HTML5 preamble with XHTML. > > Just cause I'm curious, why

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-13 Thread Gábor Boskovits
Joshua Branson ezt írta (időpont: 2018. jún. 13., Sze 15:52): > Tatiana Sholokhova writes: > > > Hello, > > > > Thank you for your reviews! > > > > I've just fixed codestyle issues and replaced HTML5 preamble with XHTML. > > Just cause I'm curious, why XHTML instead HTML5? Is XHTML better to

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-13 Thread Joshua Branson
Tatiana Sholokhova writes: > Hello, > > Thank you for your reviews! > > I've just fixed codestyle issues and replaced HTML5 preamble with XHTML. Just cause I'm curious, why XHTML instead HTML5? Is XHTML better to parse? (This question comes from non guix developer by the way. Just an

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-13 Thread Danny Milosavljevic
Hi Tatiana, On Wed, 13 Jun 2018 01:43:31 +0300 Tatiana Sholokhova wrote: > I've just fixed codestyle issues and replaced HTML5 preamble with XHTML. Yeah, looks much more regular now. > I adopted the static file serving procedure from code shared by Ricardo. > >

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-13 Thread Gábor Boskovits
2018-06-13 0:43 GMT+02:00 Tatiana Sholokhova : > Hello, > > Thank you for your reviews! > > I've just fixed codestyle issues and replaced HTML5 preamble with XHTML. > > > respond-static-file: We should not second-guess the VFS layer. Checking >> for ".." gives an illusion of security when in

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-12 Thread Tatiana Sholokhova
Hello, Thank you for your reviews! I've just fixed codestyle issues and replaced HTML5 preamble with XHTML. respond-static-file: We should not second-guess the VFS layer. Checking > for ".." gives an illusion of security when in fact random things could be > mounted and also the VFS could

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-12 Thread Ricardo Wurmus
Hi Tatiana, I have only little to add to Danny’s comments. > db-get-builds looks fine and we could merge this change to master. > But you have other changes in the same commit, so we can't directly > cherry-pick it. (not so bad, but somewhat cumbersome now) It is good practise to make small

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-12 Thread Danny Milosavljevic
Hi Tatiana, nice work! I have a few comments: db-get-builds looks fine and we could merge this change to master. But you have other changes in the same commit, so we can't directly cherry-pick it. (not so bad, but somewhat cumbersome now) I'd suggest to rename "db-get-evaluations-info" to

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-11 Thread Ludovic Courtès
Hello Tatiana & Ricardo! Ricardo Wurmus skribis: > I wasn’t sure about this, so I asked on the #guix IRC channel. Ludovic > replied there that the Cuirass repository contains a “random” > specification in “examples/random.scm”. It uses > “examples/random-jobs.scm” to generate … random jobs :)

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-11 Thread Ricardo Wurmus
Hi Tatiana, > I've just committed a new version of the interface. I've implemented the > first feature and create a more friendly interface based on bootstrap. I’ve looked at the screenshots and have to say that this is really looking good already. Exciting! > I had to add new database

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-06 Thread Danny Milosavljevic
Hi Tatiana, > I afraid that I am not familiar with typical Hydra use cases Generally, the continuous integration process should enable developers to get feedback about the effects of their changes. This means that as soon as a commit is made, usually an evaluation of the build source on the

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-05 Thread Ricardo Wurmus
Hi Tatiana, > Yes, I've taken a look at Hydra. I think my problem is that I don't totally > understand what means some pages at Hydra and how it is related to Cuirass > database tables. Hydra has Projects, Jobsets for each project, Evaluations > and Jobs for each Jobset. And Cuirass has

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-04 Thread Tatiana Sholokhova
Hello, Ricardo! Yes, I've taken a look at Hydra. I think my problem is that I don't totally understand what means some pages at Hydra and how it is related to Cuirass database tables. Hydra has Projects, Jobsets for each project, Evaluations and Jobs for each Jobset. And Cuirass has

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-03 Thread Ricardo Wurmus
Hi Tatiana, > I fixed my previous commits as you adviced. I have tested some features on > examples databases and it was correct. But I can't try your database > (small-cuirass.db) file, the queries just return empty 'queue' and 'latest > build' lists, and I haven't tried other requests yet. Oh,

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-03 Thread Tatiana Sholokhova
Hello Ricardo, I fixed my previous commits as you adviced. I have tested some features on examples databases and it was correct. But I can't try your database (small-cuirass.db) file, the queries just return empty 'queue' and 'latest build' lists, and I haven't tried other requests yet. Now we

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-06-02 Thread Ricardo Wurmus
Hi Tatiana, did you find the database files useful? Could you please let us know what the current state of your project is? Thanks, Ricardo Ricardo Wurmus writes: > Hi Tatiana, > >> I've just made a new commit. I tried to fix codestyle mistakes but I'm not >> sure that I managed to cover

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-29 Thread Gábor Boskovits
2018-05-29 18:07 GMT+02:00 Ludovic Courtès : > Hello Tatiana & all, > > Ricardo Wurmus skribis: > > >> I am a bit confused about the database structure. As far as I > understand, > >> there are project_name (project) and branch_name (jobset) properties, > but > >> project_name is a primary key,

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-29 Thread Ludovic Courtès
Hello Tatiana & all, Ricardo Wurmus skribis: >> I am a bit confused about the database structure. As far as I understand, >> there are project_name (project) and branch_name (jobset) properties, but >> project_name is a primary key, so a project can't have several branches? > > I share your

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-28 Thread Ricardo Wurmus
Hi Tatiana, > I've just made a new commit. I tried to fix codestyle mistakes but I'm not > sure that I managed to cover them all. Thank you for making the extra effort! One more thing I’ve noticed is that your patches add trailing whitespace to some lines (i.e. a line that ends on a space, or

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-24 Thread Ricardo Wurmus
Hi Tatiana, > I have committed the first HTML template page (with table of specifications > stored in the database) to web-interface branch. Can you please review it? That’s great! Congratulations on your first commit! I’ll make a couple of extra comments on style and conventions because this

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-23 Thread Tatiana Sholokhova
Hi Ricardo, Thanks for the helpful answer. Now I almost figured out how to serve static files. I have committed the first HTML template page (with table of specifications stored in the database) to web-interface branch. Can you please review it? I am a bit confused about the database structure.

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-21 Thread Ricardo Wurmus
Hi Tatiana, > I have already created a small module implementing basic HTML templates in > Scheme. Also, I have made an extension to the Cuirass Web API. It responds > on the "/status" request and generates a page with a minimalistic HTML > table displaying the list of specifications stored in

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-21 Thread Tatiana Sholokhova
Hi Ricardo, I agree with your point of view on the interface implementation approaches. Indeed, the approaches are not supposed to be mutually exclusive. As you said the first approach is easier and I have started working closer to this approach. I have already created a small module

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-18 Thread Ricardo Wurmus
Hi Tatiana, > I have started thinking about the type of web interface we want to have for > Cuirass in this project. As far as I see, there are two options: > >- a web application served by Cuirass web server; >- a standalone static site which sends queries to the Cuirass web API >

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-17 Thread Tatiana Sholokhova
Hello everyone, Thank you for the proposed ways of dealing with the problem I've faced. Eventually, I have managed to run Danny's application locally. I have learned all the queries to Cuirass web API which the application sends and the general workflow of the interface. I have started thinking

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-14 Thread Chris Marusich
Tatiana Sholokhova writes: > Unfortunately, I have no experience of IRC usage and I'm not sure how to do > in a proper way. Of course, I would like to communicate with the community, > but I'm not sure which discussions are relevant in the IRC. For instance, > could I ask

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-14 Thread Ricardo Wurmus
Hi Tatiana, > Unfortunately, I have no experience of IRC usage and I'm not sure how to do > in a proper way. Of course, I would like to communicate with the community, > but I'm not sure which discussions are relevant in the IRC. For instance, > could I ask questions on building issues similar

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-13 Thread Tonton
Hi! As far as IRC is concerned you're welcome to take any questions or conversations that you have there. When people are online it tends to be faster, and some problems - like live troubleshooting - is better suited to IRC. Personally I ask on IRC when I have a question. If it isn't answered or

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-13 Thread Danny Milosavljevic
Hi Tatiana, > I have taken a look at Danny's Cuirass frontend application. Now I try to > run it locally. I have already figured out that I need to change URLPREFIX > and name of the repository and the branch in the code. But I still can't > get it working. According to the browser console, all

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-13 Thread Gábor Boskovits
2018-05-13 20:45 GMT+02:00 Tatiana Sholokhova : > Hi all, > > Thank you for your help and the provided resources which are very useful > for me at the first stage of the project. > > I have built Cuirass on my local computer but I have encountered a few > problems while

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-13 Thread Tatiana Sholokhova
Hi all, Thank you for your help and the provided resources which are very useful for me at the first stage of the project. I have built Cuirass on my local computer but I have encountered a few problems while doing it. It turned out that I had an old version of guile-sqlite3 installed by guix. I

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-09 Thread Ricardo Wurmus
Hi Danny, > Hi Tatjana and welcome! > > On Fri, 04 May 2018 14:55:01 +0200 > l...@gnu.org (Ludovic Courtès) wrote: > >> In terms of Web interface, Danny Milosavljevic wrote a simple HTML page >> with JavaScript code that queries Cuirass using its HTTP interface². >> You can see it here: >> >>

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-09 Thread Ricardo Wurmus
Hi Tatiana, we haven’t heard from you since about a week, nor have I seen you on IRC. (Granted, I was offline for some time, so I probably just missed your introduction.) The official so-called “community bonding period” of GSoC is soon coming to an end, and it would be advisable to use the

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-08 Thread Danny Milosavljevic
Hi Tatjana and welcome! On Fri, 04 May 2018 14:55:01 +0200 l...@gnu.org (Ludovic Courtès) wrote: > In terms of Web interface, Danny Milosavljevic wrote a simple HTML page > with JavaScript code that queries Cuirass using its HTTP interface². > You can see it here: > >

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-05 Thread Ricardo Wurmus
Hi Tatiana, welcome to Guix! > A good starting point for you will be to take a look at the basic ideas > behind Cuirass: what it does, how it structures information about builds > that it performs (which can be inferred from its database¹). Some time ago I tried to document the database

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-04 Thread Ludovic Courtès
Hello Tatiana, Tatiana Sholokhova skribis: > I'm Tatiana, I'm a GSoC intern. Now, I'm pursuing my master degree > in Computer Science at Moscow State University. > > My project in GSoC is implementation web interface analogous to Hydra > interface. Thanks for your

Re: GSoC: Adding a web interface similar to the Hydra web interface

2018-05-03 Thread Maxim Cournoyer
Hello! Tatiana Sholokhova writes: > Hello! > > I'm Tatiana, I'm a GSoC intern. Now, I'm pursuing my master degree > in Computer Science at Moscow State University. Welcome :) > My project in GSoC is implementation web interface analogous to Hydra > interface. Sounds