Open
Conversation
Member
Author
|
can't test osx part because travis macos infrastructure is down: |
unable to replace files in /usr on osx
Member
Author
|
https://travis-ci.org/file/file-tests/jobs/279692965 @thomasjfox do you know how the test data is modified? on OSX an |
Contributor
|
On Dienstag, 26. September 2017 17:44:14 CEST Elan Ruusamäe wrote:
https://travis-ci.org/file/file-tests/jobs/279692965
@thomasjfox do you know how the test data is modified?
on OSX an `x.iso` is detected differently:
```
FAIL db/iso/x.iso
Expected :DOS/MBR boot sector; partition 1 : ID=0x17, active, start-CHS
(0x0,0,1), end-CHS (0x2c7,63,32), startsector 0, 1458176 sectors Got
:ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) 'testday-20110324'
(bootable) Expected :application/octet-stream; charset=binary
Got :application/x-iso9660-image; charset=binary
```
the output looks a bit odd to me. I've checked the input file
and it should indeed be a ISO 9660 filesystem image.
file-5.29 on my Fedora 25 workstation gives the correct result:
$ file ../file-tests/db/iso/x.iso
../file-tests/db/iso/x.iso: ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) 'testday-20110324' (bootable)
$ file --mime-type ../file-tests/db/iso/x.iso
../file-tests/db/iso/x.iso: application/x-iso9660-image
file-5.28 compiled from source gives:
$ src/file --mime-type -m magic/magic.mgc ../file-tests/db/iso/x.iso
../file-tests/db/iso/x.iso: application/x-iso9660-image
file-5.29 compiled from source gives:
$ src/file --mime-type -m magic/magic.mgc ../file-tests/db/iso/x.iso
../file-tests/db/iso/x.iso: application/octet-stream
So it looks like a regression to me?
I've you agree we should contact Christos since the
file mailinglist is probably still down.
Cheers,
Thomas
|
Member
Author
|
but linux build succeeds on the same build:
and i don't understand how the "diff" is made, as i read from readme, the .pickle files should be created from previous file release, but travis job currently present doesn't do that. it just runs diff of current codebase. i would suspect first cache from previous runs, but there's nothing configured to be cached between travis builds... |
Contributor
|
On Tuesday, 26 September 2017 23:59:53 CEST Elan Ruusamäe wrote:
but linux build succeeds on the same build:
- https://travis-ci.org/file/file-tests/builds/279692963
- linux: https://travis-ci.org/file/file-tests/jobs/279692964
- osx: https://travis-ci.org/file/file-tests/jobs/279692965
and i don't understand how the "diff" is made, as i read from readme, the
.pickle files should be created from previous file release, but travis job
currently present doesn't do that. it just runs diff of current codebase. i
would suspect first cache from previous runs, but there's nothing
configured to be cached between travis builds...
I think you are right, the comparison to the previous DB seems
not to be implemented. I've checked the git history of .travis.yml
and it was like that since the initial commit.
Which brings us to the point how the comparison should be done.
In my local file-tests repo, we have a branch that contains the
.pickle files since the last file package upgrade in our distribution.
Committing the .pickle files to git won't work properly for other
file-tests users, so we should save those .pickle files for Travis only.
Would storing the .pickle files in a "Travis cache" work?
If the file(1) output changes in a wanted way, we would manually
clear the existing cache and it would rebuild itself with the new output.
This still doesn't explain why OSX behaves differently though.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
solves #3 using solution "1"