[Swift-devel] Need help to enable provenance

Michael Wilde wilde at mcs.anl.gov
Sat Apr 13 16:21:13 CDT 2013


> So I'm not quite sure what's happening in your case. I would check
> simple things like making sure you are editing the right
> configuration
> file, that you are not overriding -provenance.log on the command
> line,
> etc.

Indeed, that seems to have been the problem: I forgot that I had created a $HOME/.swift/swift.properties file earlier in the week.

But the resulting properties ordering seems to be less than clear and desirable behavior: even though (a) I was specifying via -config a properties file with provenance=true, (b) the .log file confirmed this, it seems that swift took at least the provenance setting from the $HOME/.swift/swift.properties file.

We should examine this in more detail. I would have expected that properties are read in this order:

$SWIFT_HOME/etc/swift.properties
$HOME/.swift/swift.properties
swift -config swift.properties

Im not sure, but perhaps the provenanceEnabled state is getting latched in to "false" (from an initial null) in some class(es) when the second properties file above is processed, and the -config file's provenance.value is being ignored?  Or maybe its just  that the second file above has the final say for all values?  Needs more experimentation, but something doesnt seem right and logical here.

- Mike




More information about the Swift-devel mailing list