[ucn] more notes on installing the unicorn tool on qa-dev

Hello,

I've been working, little by little and time permitting, on  
installing the "unicorn" framework onto the qa-dev server in the past  
few days. The instructions provided, and the ant build script, have  
proven very useful, things work mostly out of the box.

I've already exchanged a couple of mails with Damien and Jean-Gui,  
but think it may be a good idea to include the list in the loop, as I  
suspect others will want to install/test the tool, too.

I've installed the tool at:
http://qa-dev.w3.org:8080/unicorn/en_index.html
(temporarily... I'll give mod_jk a look to perhaps make the URI  
prettier)

A couple of things I've noticed or wondered about:

* has the CSS validator been patched yet to have a ucn output? I  
don't recall seeing the cvs messages. Yves, are you reviewing the  
patches at the moment?

* I've noticed a couple of tiny mistakes in the mime type  
configurations. If I'm not mistaken, the list of mime types supported  
by the markup validator should be the following:

	<ucn:mimetype>text/html</ucn:mimetype>
	<ucn:mimetype>application/xhtml+xml</ucn:mimetype>
	<ucn:mimetype>image/svg+xml</ucn:mimetype>
	<ucn:mimetype>application/mathml+xml</ucn:mimetype>
	<ucn:mimetype>application/smil+xml</ucn:mimetype>

Note the image/svg+xml media type for SVG. I'm not an expert, but if  
I recall properly, this, and not application/svg+xml, was chosen as  
mime type for SVG. Worth double checking at least.

So for the CSS validator it should be:
	<ucn:mimetype>text/css</ucn:mimetype>
	<ucn:mimetype>text/html</ucn:mimetype>
	<ucn:mimetype>application/xhtml+xml</ucn:mimetype>
	<ucn:mimetype>image/svg+xml</ucn:mimetype>

I updated these files, which my installation of the tool refers to,  
and was expecting the following to be working:
http://qa-dev.w3.org:8080/unicorn/observe? 
ucn_task=validation&ucn_uri=http%3A%2F%2Fwww.la-grange.net%2F2006% 
2F05%2F13

but it still wasn't, and I remembered that the supported mime types  
are also configured in the tasklist.

I don't know if that's the most usable. Could the list of mime types  
accepted for a given task be computed from the observers:
- concatenate all mime types supported by the observers of the task
- if an observer does not support the mime type, skip it if the  
document passing the task has that unsupported mime type.

alternatively, another approach:
- compute the list of supported mime types for a given task as the  
least common denominator from all its observers.

I prefer the former solution, but it may have its issues. And perhaps  
there were issues that pushed us to define mime type support both in  
observers and tasks, if so, sorry, I have forgotten, could you remind  
me?

Thanks,
-- 
olivier

Received on Thursday, 3 August 2006 07:08:36 UTC