Skip to contentSkip to conversation

Revision of sensors-detect

lm-sensors Jean Delvare 2 participants 4 messages Mar 12, 2009 – Mar 19, 2009

lore
Share & tools
lore
#0 lore raw

Hi Axel,

We often ask our users to test the latest version of sensors-detect. They typically get it from SVN through the trac interface:
http://www.lm-sensors.org/browser/lm-sensors/trunk/prog/detect/sensors-detect?format=txt
Unfortunately, trac doesn't honor keyword substitutions, so when the user reports the output, we get:

# sensors-detect revision $Revision$

Not very useful. The bug (or at least missing feature) has already been reported upstream 5 years ago, and I've added a comment there yesterday:
http://trac.edgewall.org/ticket/717#comment:10
I don't expect this ticket to get fixed soon.

An alternative is to use the SVN web interface:
http://www.lm-sensors.org/svn/lm-sensors/trunk/prog/detect/sensors-detect
Unfortunately there is no keyword substitution there either. Does anyone know if there is a way to enable it?

If not, it would be nice to have a workaround. I have one, which is a simple CGI script which fetches the file using the svn command line client and prints its contents:

#!/bin/sh
echo "Content-type: text/plain"
echo
svn cat http://www.lm-sensors.org/svn/lm-sensors/trunk/prog/detect/sensors-detect

I've tested it locally and it works fine for me. I could run it on my home server, however I think it is better for the users if they get the script from lm-sensors.org. They really have no reason to trust my personal server (which may also disappear someday.)

Axel, is there a chance we could run this CGI script on lm-sensors.org and point users to it when we want them to test the latest version of sensors-detect?

Thanks,

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw

Hi,

Quoted 15 lines · Jean Delvare

Hi Axel,

We often ask our users to test the latest version of sensors-detect. They typically get it from SVN through the trac interface:
http://www.lm-sensors.org/browser/lm-sensors/trunk/prog/detect/sensors-detect?format=txt
Unfortunately, trac doesn't honor keyword substitutions, so when the user reports the output, we get:

# sensors-detect revision $Revision$

Not very useful. The bug (or at least missing feature) has already been reported upstream 5 years ago, and I've added a comment there yesterday:
http://trac.edgewall.org/ticket/717#comment:10
I don't expect this ticket to get fixed soon.

Quoted 4 lines

An alternative is to use the SVN web interface:
http://www.lm-sensors.org/svn/lm-sensors/trunk/prog/detect/sensors-detect
Unfortunately there is no keyword substitution there either. Does anyone know if there is a way to enable it?

I don't know, but that would be the best solution. Anyone with more svn (web) experience under the belt?

Quoted 9 lines

If not, it would be nice to have a workaround. I have one, which is a simple CGI script which fetches the file using the svn command line client and prints its contents:

#!/bin/sh
echo "Content-type: text/plain"
echo
svn cat http://www.lm-sensors.org/svn/lm-sensors/trunk/prog/detect/sensors-detect

Quoted 8 lines

I've tested it locally and it works fine for me. I could run it on my home server, however I think it is better for the users if they get the script from lm-sensors.org. They really have no reason to trust my personal server (which may also disappear someday.)

Axel, is there a chance we could run this CGI script on lm-sensors.org and point users to it when we want them to test the latest version of sensors-detect?

I think I'd rather prefer a static solution, e.g. create a daily checkout w/ keyword substitution. Could be part of the snapshot creation script.

CGIs are nasty in the sense that for security one may turn it off on a whitelist basis (actually nothing uses CGI currenlty) and a simply CGI script could be forgotten in a server update/hardening messing up the download.

Signature · 1 line
Axel.Thimm at ATrpms.net

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Jean Delvare

Hi Axel,

Thanks for your quick answer.

Quoted 18 lines · Axel Thimm

Hi,

Quoted 15 lines · Jean Delvare

Hi Axel,

We often ask our users to test the latest version of sensors-detect. They typically get it from SVN through the trac interface:
http://www.lm-sensors.org/browser/lm-sensors/trunk/prog/detect/sensors-detect?format=txt
Unfortunately, trac doesn't honor keyword substitutions, so when the user reports the output, we get:

# sensors-detect revision $Revision$

Not very useful. The bug (or at least missing feature) has already been reported upstream 5 years ago, and I've added a comment there yesterday:
http://trac.edgewall.org/ticket/717#comment:10
I don't expect this ticket to get fixed soon.

Quoted 7 lines
Quoted 4 lines

An alternative is to use the SVN web interface:
http://www.lm-sensors.org/svn/lm-sensors/trunk/prog/detect/sensors-detect
Unfortunately there is no keyword substitution there either. Does anyone know if there is a way to enable it?

I don't know, but that would be the best solution. Anyone with more svn (web) experience under the belt?

I tried asking on IRC but didn't get any useful answer. That's unfortunate because that would clearly have been the best solution.

Quoted 14 lines
Quoted 14 lines

If not, it would be nice to have a workaround. I have one, which is a simple CGI script which fetches the file using the svn command line client and prints its contents:

#!/bin/sh
echo "Content-type: text/plain"
echo
svn cat http://www.lm-sensors.org/svn/lm-sensors/trunk/prog/detect/sensors-detect

I've tested it locally and it works fine for me. I could run it on my home server, however I think it is better for the users if they get the script from lm-sensors.org. They really have no reason to trust my personal server (which may also disappear someday.)

Quoted 7 lines
Quoted 3 lines

Axel, is there a chance we could run this CGI script on lm-sensors.org and point users to it when we want them to test the latest version of sensors-detect?

I think I'd rather prefer a static solution, e.g. create a daily checkout w/ keyword substitution. Could be part of the snapshot creation script.

It isn't uncommon that I commit a fix and ask a user to give it a try right away. Having to wait for one day would be inconvenient in this case. I can live with it if there's no other way (that's probably better than the current situation) but I'd prefer a more frequent update rate.

Wouldn't it be possible to add an exception for sensors-detect to the post-commit hook? If file = sensors-detect then run "svn cat sensors-detect > some path" or something? That way we would ensure there is no delay between the commit and the snapshot, and also no daily checkout when the file doesn't change.

Quoted 4 lines

CGIs are nasty in the sense that for security one may turn it off on a whitelist basis (actually nothing uses CGI currenlty) and a simply CGI script could be forgotten in a server update/hardening messing up the download.

This wouldn't be a critical CGI, so if it breaks, we can simply fix it when we notice the breakage. But anyway, as the server admin it's up to you. If you say no CGI then no CGI.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
In reply to Jean Delvare
Quoted 36 lines · Jean Delvare
Quoted 15 lines · Axel Thimm
Quoted 14 lines · Jean Delvare

If not, it would be nice to have a workaround. I have one, which is a simple CGI script which fetches the file using the svn command line client and prints its contents:

#!/bin/sh
echo "Content-type: text/plain"
echo
svn cat http://www.lm-sensors.org/svn/lm-sensors/trunk/prog/detect/sensors-detect

I've tested it locally and it works fine for me. I could run it on my home server, however I think it is better for the users if they get the script from lm-sensors.org. They really have no reason to trust my personal server (which may also disappear someday.)

Quoted 7 lines
Quoted 3 lines

Axel, is there a chance we could run this CGI script on lm-sensors.org and point users to it when we want them to test the latest version of sensors-detect?

I think I'd rather prefer a static solution, e.g. create a daily checkout w/ keyword substitution. Could be part of the snapshot creation script.

It isn't uncommon that I commit a fix and ask a user to give it a try right away. Having to wait for one day would be inconvenient in this case. I can live with it if there's no other way (that's probably better than the current situation) but I'd prefer a more frequent update rate.

Wouldn't it be possible to add an exception for sensors-detect to the post-commit hook? If file = sensors-detect then run "svn cat sensors-detect > some path" or something? That way we would ensure there is no delay between the commit and the snapshot, and also no daily checkout when the file doesn't change.

Quoted 8 lines
Quoted 4 lines

CGIs are nasty in the sense that for security one may turn it off on a whitelist basis (actually nothing uses CGI currenlty) and a simply CGI script could be forgotten in a server update/hardening messing up the download.

This wouldn't be a critical CGI, so if it breaks, we can simply fix it when we notice the breakage. But anyway, as the server admin it's up to you. If you say no CGI then no CGI.

Axel, any progress here?

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors