On Sun, May 17, 2020 at 11:09 PM Craig Russell <apache....@gmail.com> wrote:
>
> I'm used to debugging using e.g. console.log("Here is some data:" + data)
>
> What is the way to emit some debug messages on the console in the whimsy test 
> server environments?

Some reading materials:

https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html

Wunderbar provides a logger.  Example uses:

https://github.com/apache/whimsy/blob/master/tools/collate_minutes.rb#L11
https://github.com/apache/whimsy/blob/c8acf028b4e0999c5055633328bb957633dd3ecc/lib/whimsy/asf/ldap.rb#L86

> And perhaps there are unit tests for (the components that I've modified) 
> documents.rb and committer.rb?

There are two test suites currently defined, one for the board/agenda
tool, and one for the libs:

https://github.com/apache/whimsy/blob/master/.travis.yml#L5

Test suites are run on every push to git:

https://travis-ci.org/github/apache/whimsy/builds

If you add a 'test' task to whimsy/www/roster/Rakefile, and add
www/roster/Gemfile to the .travis.yml file, it will be run on every
push.

> Thanks,
> Craig

- Sam Ruby

> P.S. google/
> > On May 17, 2020, at 7:41 PM, Craig Russell <apache....@gmail.com> wrote:
> >
> > I removed the svn entries in .whimsy and checked out 609 MB of files that 
> > were already in my local repo.
> >
> > So now I'm able to test my changes. Could someone please take a look?
> >
> > git branch roster-emeritus
> >
> > Thanks,
> > Craig
> >
> >
> >> On May 17, 2020, at 7:50 AM, Craig Russell <apache....@gmail.com 
> >> <mailto:apache....@gmail.com>> wrote:
> >>
> >> I have lots of svn entries in .whimsy:
> >>      :svn:
> >>      - /Users/clr/apache/foundation
> >>      - /Users/clr/apache/documents
> >>      - /Users/clr/apache/committers
> >>      - /Users/clr/apache/infrastructure/apmail/trunk/bin
> >>      - /Users/clr/apache/incubator/public
> >>
> >> Clearly I set these up when I last was running whimsy locally.
> >>
> >> Do I just remove them?
> >>
> >> Craig
> >>
> >>> On May 16, 2020, at 9:09 PM, Sam Ruby <ru...@intertwingly.net 
> >>> <mailto:ru...@intertwingly.net>> wrote:
> >>>
> >>>> But when I select clr from the list, same error as before.
> >>>> 2020-05-16 20:40:25 - Errno::ENOENT - No such file or directory @ 
> >>>> rb_file_s_mtime - /srv/svn/iclas.txt:
> >>>
> >>> That file should have been created when you ran "rake svn:update" from
> >>> the whimsy directory.  If it does not, make sure that there are no svn
> >>> entries in your ~/.whimsy file, and rerun rake svn:update.
> >>
> >> Craig L Russell
> >> c...@apache.org <mailto:c...@apache.org>
> >>
> >
> > Craig L Russell
> > c...@apache.org <mailto:c...@apache.org>
> >
>
> Craig L Russell
> c...@apache.org
>

Reply via email to