This repository was archived by the owner on Feb 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
BUG: fix source file duplication in command line #290
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
f0227bb
BUG: fix source file duplication in command liine
xoviat 40cd447
BUG: improve handling of specified sources
xoviat cc8a52b
BUG: revert f0227bb
xoviat ba1f7d1
BUG: revise analyze method to detect language
xoviat 3df60a6
MAINT: cleanup zip iterator
xoviat 662f7ed
BUG: fix syntax error
xoviat bbdd257
MAINT: cleanup formBaseCommandLine
xoviat 94218fd
:art:
xoviat f69b709
MAINT: cleanup source file filtering
xoviat df74660
MAINT: improve jobCmdLine readability
xoviat 0aac12b
TST: fix existing unittests
xoviat ce9de5e
appveyor: define CLCACHE_LOG
xoviat ec0fae1
TST: printTraceStatement: print caller line
xoviat 2e10786
BUG: fix printTraceStatement
xoviat 019ae2f
FIX: switch to OrderedDict
xoviat 6c3a855
FIX: move import
xoviat 56be5e2
FIX: check whether cmdLine arg startswith /MP
xoviat 5de5fcc
FIX: revert use of OrderedDict
xoviat 725410e
FIX: appveyor: revert CLCACHE_LOG
xoviat 19e7126
TST: revert changes
xoviat 9079f32
TST: unit: correct comparisons
xoviat 7fb4480
TST: integration: print output
xoviat 4a7ee82
TST: unit: add some reasonable tests for filterSourceFiles
xoviat 34fcb5d
TST: unit: fix
xoviat 9ebb89b
FIX: revert changes to printTraceStatement
xoviat 084b23b
FIX: remove unused import
xoviat 275ae15
FIX: update ??? to type: Any
xoviat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be that the failure in tests is introduced here because inputFiles.items() does not always return the items in the same order? either sorting them or using OrderedDict in line 1253 could help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will try that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if it didn't fix the tests I think it still makes sense to keep the OrderedDict. The output of analyze() should return the same order across executions 1) to keep the tests passing and 2) to generate the same hash for the compilation task (if it is computed after, I am not sure about this). I don't know enough about this part of the code, to be checked with @frerich.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test failures have nothing to do with the order, and if I understand correctly, the hash is calculated per-file ("This causes clcache to reinvoke itself recursively for each of the source files"), making the order irrelevant. There is no reason to tell Python to preserve the order when it doesn't matter.