Re: GSoC: Adding a web interface similar to the Hydra web interface
Can you please send us an update on your project?
Re: GSoC 2018 Syntax and semantics of systemd units in the Shepherd - 1st update
Hello, could you please send us an update on your project?
Re: GSoC: Adding a web interface similar to the Hydra web interface
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 project. I am very happy to pass the first evaluation. It is a pleasure for me to work with such a great team! In a few days, I am going to implement the whitelist for the static files and improve pagination tool performance as we discussed before. Also, I intend to make the pagination tool universal and add it to the page which displays all builds of a selected evaluation. Do you think it would be okay if I add auxiliary pagination filters to the request which retrieves builds from the database? Best regards, Tatiana 2018-06-25 13:46 GMT+03:00 Gábor Boskovits : > Can you please send us an update on your project? >
Apologies
In my last interaction on this list, my behaviour was inappropriate I used some foul language I shouldn't have I understand I hurt Ricardo's, Pjotr's and Mark's feelings Of course there's some difference in our backgrounds, but instead of properly discuss it, I ended up resorting to unfairness In so doing I undermined not only people's willingness to engage in Guix as a project but also my own arguments. It happened simply because I lost it, I got carried away I apologize
Re: Next steps
Hi Ricardo, I think I am done with basic changes for 4th task. File is attached. As mentioned in IRC output is in escape code sequence when I tried in REPL. > I am done with 2nd task out of given 4 tasks and that was included in my > previous patch. > I am currently working on 4th task. I am able to filter lines. I am trying out to*only* filter lines when “guix package” is used but not when “guix build” by adding other port. Thanks!! Sahithi (use-modules (ice-9 match) ; need this for âmatch-lambdaâ (srfi srfi-1) (srfi srfi-26)) ; need this for âanyâ (define str "phase foo failed after 100 seconds") ;; Each list item in âpatternsâ is a regular expression followed by a ;; number of colours. (let ((patterns '(("^(starting phase )(.*)" BLUE GREEN) ("^(phase)(.*)(succeeded after)(.*)(seconds)" GREEN BLUE GREEN BLUE GREEN) ("^(phase)(.*)(failed after)(.*)(seconds)" RED BLUE RED BLUE RED ;; See if âanyâ of the patterns matches, i.e. returns a string and ;; not just #f. We use âmatch-lambdaâ to bind the pattern to the ;; variable âpatternâ and the list of colours to the variable ;; âcolorsâ. (or (any (match-lambda ((pattern . colors) ;; TODO: use string-match, match:count, match:substring, ;; colorize-string, and=>, etc to see if a pattern matches ;; and to transform the string according to âcolorsâ. ;; If the pattern does not match return #f to ;; automatically try the next, thanks to âanyâ. ;;(colorize-string (match:substring (match:count (string-match pattern str))) colors) (and=> (string-match pattern str) (lambda (m) ; (colorize-string (map match:substring m (iota (- (match:count m) 1) 1) colors))) ;(map (cut match:substring m <>) (iota (- (match:count m) 1) 1 (string-join (map (lambda (n color) (colorize-string (match:substring m n) color)) (iota (- (match:count m) 1) 1) colors )) patterns) ;; Nothing matched, so return the string without changes. str))
Re: Next steps
Hi Sahithi, > I think I am done with basic changes for 4th task. File is attached. As > mentioned in IRC output is in escape code sequence when I tried in REPL. Great. Please change ui.scm directly and send a patch that can be applied to the wip-sahithi branch. Please also pay attention to these things: * indent the lines properly (Emacs does the right thing when you hit TAB) * don’t leave extraneous comments or dead code * make sure long expressions are broken up >> I am done with 2nd task out of given 4 tasks and that was included in my >> previous patch. >> I am currently working on 4th task. > I am able to filter lines. > I am trying out to*only* filter lines when “guix package” is used but > not when “guix build” by adding other port. The next step here would be to not print a dot for each line but to display a spinner instead, i.e. a sequence of characters that look like a spinning animation. For each line the animation could be advanced by one (so it will spin really fast). Danny previously suggested this implementation: https://lists.gnu.org/archive/html/guix-patches/2017-07/msg00068.html You may be able to take a part of that patch and adapt it. The key here is really: keep track of the animation position and use backspace to delete the previously printed character before displaying the next. If you don’t like the spinner animation you could also pick one of these and try implementing them instead: https://stackoverflow.com/questions/2685435/cooler-ascii-spinners Have fun! -- Ricardo