Skip to content

Commit

Permalink
test(scancode): Include timeout errors in the assets for output formats
Browse files Browse the repository at this point in the history
Re-create the assets by re-scanning `mime-types` 2.1.18 with the same
ScanCode version as before, and with the same arguments, except for the
timeout value which has been choosen to be smaller. The values have
been chosen such that exactly one timeout issue is returned, which is
why they differ between the assets. Several properties of the files
like `hash` and `size` only changed, because `mime-types` has
previously been checkout out on Windows, while this time it has been
checked out under Linux. So, the checkout differs in terms of CRLF vs.
LF terminators.

This prepares for covering the mapping of the timeout issues with
tests.

Note: For output format 2.0 a different ScanCode version has been used,
      because the previously used version did not execute for unknown
      reason.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Dec 1, 2023
1 parent bff2d01 commit 97c121e
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
"--license": true,
"--processes": "3",
"--strip-root": true,
"--timeout": "300.0"
"--timeout": "0.07"
},
"notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
"start_timestamp": "2022-01-05T084200.807482",
"end_timestamp": "2022-01-05T084208.477139",
"start_timestamp": "2023-12-01T155457.480696",
"end_timestamp": "2023-12-01T155458.826319",
"output_format_version": "1.0.0",
"duration": 7.669657230377197,
"duration": 1.3456354141235352,
"message": null,
"errors": [],
"errors": [
"Path: .eslintignore"
],
"extra_data": {
"spdx_license_list_version": "3.14",
"OUTDATED": "WARNING: Outdated ScanCode Toolkit version! You are using an outdated version of ScanCode Toolkit: 30.1.0 released on: 2021-09-24. A new version is available with important improvements including bug and security fixes, updated license, copyright and package detection, and improved scanning accuracy. Please download and install the latest version of ScanCode. Visit https://github.com/nexB/scancode-toolkit/releases for details.",
Expand All @@ -36,16 +38,16 @@
"name": ".eslintignore",
"base_name": ".eslintignore",
"extension": "",
"size": 24,
"date": "2022-01-05",
"sha1": "48dea6ba9f7cf745be3259c7fe168e6469ea7316",
"md5": "028542149e97637e14596347b975dde3",
"sha256": "3785c646c7743e4faea4d6cf96f8702d8cdac9a5615c59170be58d1b46d3a480",
"mime_type": "text/plain",
"file_type": "ASCII text, with CRLF line terminators",
"size": 0,
"date": null,
"sha1": null,
"md5": null,
"sha256": null,
"mime_type": null,
"file_type": null,
"programming_language": null,
"is_binary": false,
"is_text": true,
"is_text": false,
"is_archive": false,
"is_media": false,
"is_source": false,
Expand All @@ -59,19 +61,21 @@
"files_count": 0,
"dirs_count": 0,
"size_count": 0,
"scan_errors": []
"scan_errors": [
"ERROR: for scanner: info:\nERROR: Processing interrupted: timeout after 0 seconds."
]
},
{
"path": ".eslintrc",
"type": "file",
"name": ".eslintrc",
"base_name": ".eslintrc",
"extension": "",
"size": 31,
"date": "2022-01-05",
"sha1": "483c3722583913f5ea6387ce61eaf2fefa4adefb",
"md5": "b611628b3e000cdd204f4f4316425ef0",
"sha256": "1bc2b1b35d452e447da6b5f47c754415eb0af07f3919c0500392beca99c098c4",
"size": 28,
"date": "2023-12-01",
"sha1": "96be83d7bb17676e365d625ed72a3206968d9eb6",
"md5": "58e33291e06991fe8d46686f0ed04f45",
"sha256": "f12764948fdb96693910f1abeaf19c808be30c034406bccc08394aa3c80a68cd",
"mime_type": "application/json",
"file_type": "JSON data",
"programming_language": null,
Expand All @@ -98,13 +102,13 @@
"name": ".travis.yml",
"base_name": ".travis",
"extension": ".yml",
"size": 1166,
"date": "2022-01-05",
"sha1": "0d7cae484d05adc2cedfaea8a75f576bf739c326",
"md5": "5ac6e76c883b9167758286884f53fc85",
"sha256": "ed232e1eb6bdb4070b818d5b8f4e395b4f1b3cc6296f2cb3cd8db15324791b5a",
"size": 1128,
"date": "2023-12-01",
"sha1": "a56bb611572c8932bb34412e90724977d6422af9",
"md5": "8171613679d8f14acc1b60563fce4770",
"sha256": "f8f51d063ab08f7f04cff73be7cbbee8be5a2ea95bf9e0c14dcebc3911760bc0",
"mime_type": "text/plain",
"file_type": "ASCII text, with CRLF line terminators",
"file_type": "ASCII text",
"programming_language": null,
"is_binary": false,
"is_text": true,
Expand All @@ -129,13 +133,13 @@
"name": "HISTORY.md",
"base_name": "HISTORY",
"extension": ".md",
"size": 5453,
"date": "2022-01-05",
"sha1": "03ba44abfacfae3dac4fd833f4ec37169992540c",
"md5": "e5953f3349de03c81d19b4ba7fdab9cf",
"sha256": "1626f3cc8562040d67749d162864467113948f0d4052226cb0b37a53c4bf1343",
"size": 5193,
"date": "2023-12-01",
"sha1": "cde432c1ca703b4d0782e98491fc6249d6a6554d",
"md5": "482dda4ec77788258aee5469ad331f84",
"sha256": "7d5946b10e82242de82848f1095f4e2b440bb4195ebd5892dd9a2c14ccd9ba1f",
"mime_type": "text/plain",
"file_type": "ASCII text, with CRLF line terminators",
"file_type": "ASCII text",
"programming_language": null,
"is_binary": false,
"is_text": true,
Expand All @@ -160,13 +164,13 @@
"name": "index.js",
"base_name": "index",
"extension": ".js",
"size": 3851,
"date": "2022-01-05",
"sha1": "3cf07110597dc57987f78debefdfb673eda94311",
"md5": "46ef7926b08857c43f28effdbe29bb1a",
"sha256": "c7ab5bed05f4b98bd9e8eba95ee84182110dcdc41c2562f7613ef38dc8715da5",
"size": 3663,
"date": "2023-12-01",
"sha1": "8d1f07ae6192c4dd6bc08a9247a91af4a0a51eca",
"md5": "bf015bb6811afc5c98e3e5f7072fdc79",
"sha256": "8cfccaac306beb650d60c7f069ae0f4b39d648f1e3914696b18c133ab33e6419",
"mime_type": "text/plain",
"file_type": "ASCII text, with CRLF line terminators",
"file_type": "ASCII text",
"programming_language": "JavaScript",
"is_binary": false,
"is_text": true,
Expand Down Expand Up @@ -254,13 +258,13 @@
"name": "LICENSE",
"base_name": "LICENSE",
"extension": "",
"size": 1190,
"date": "2022-01-05",
"sha1": "a3812f9b96377114eaff74eb8dfb271042c61b3c",
"md5": "4eab6843245537b49541a7f103c2ecf0",
"sha256": "db504e84743293a687fedb6f16a03d71121c54bdb2bea2e018ad7220c84ba69f",
"size": 1167,
"date": "2023-12-01",
"sha1": "f027af3e61af3880fd7f7b8ba9452a85dd215738",
"md5": "bf1f9ad1e2e1d507aef4883fff7103de",
"sha256": "71f83c4c0621102a56d9853812777b85751bce7e9726f686f5b056c1f8a4b0e6",
"mime_type": "text/plain",
"file_type": "ASCII text, with CRLF line terminators",
"file_type": "ASCII text",
"programming_language": null,
"is_binary": false,
"is_text": true,
Expand Down Expand Up @@ -387,11 +391,11 @@
"name": "package.json",
"base_name": "package",
"extension": ".json",
"size": 1241,
"date": "2022-01-05",
"sha1": "e5f8204fa50dcf6ceaf34061a8458f8aeb7a5b28",
"md5": "6a24b325e5adb2af9c51a24532c8e94b",
"sha256": "e59b75cc7ff74d6ab854326077702084ebb0079c6ee7ff7a4485be53dac778a1",
"size": 1198,
"date": "2023-12-01",
"sha1": "24a84da16e7d0bdc3f64f7a1adadcabfb7cb6731",
"md5": "ecee7be49e1352af8b37966b45b89e42",
"sha256": "d87d3aeb7c81341a2df51e0f7853113a349e62d103f96968501bc4332c6da445",
"mime_type": "application/json",
"file_type": "JSON data",
"programming_language": null,
Expand Down Expand Up @@ -459,13 +463,13 @@
"name": "README.md",
"base_name": "README",
"extension": ".md",
"size": 3228,
"date": "2022-01-05",
"sha1": "1d949a1b380ecc23a0687fd87f081d708e0483aa",
"md5": "ec293b105f8f27545284b9332b191e96",
"sha256": "e4308c8a10147aab0df6ed2e7f86cdebcfc1f24f71e6a186b8f6fb17ad5e2e69",
"size": 3120,
"date": "2023-12-01",
"sha1": "3f25621607960c6e73fc4f9b8bf97327e210a9f2",
"md5": "40f806a97b423ce26a485afe986fb151",
"sha256": "b66ddab5ca562f3bcb6580a7d9d1e78bd755503210762d3530fad80366b1b8b2",
"mime_type": "text/plain",
"file_type": "ASCII text, with CRLF line terminators",
"file_type": "ASCII text",
"programming_language": null,
"is_binary": false,
"is_text": true,
Expand Down Expand Up @@ -553,7 +557,7 @@
"authors": [],
"files_count": 2,
"dirs_count": 0,
"size_count": 8944,
"size_count": 8712,
"scan_errors": []
},
{
Expand All @@ -562,11 +566,11 @@
"name": ".eslintrc",
"base_name": ".eslintrc",
"extension": "",
"size": 42,
"date": "2022-01-05",
"sha1": "7de550f1a6a125f26962b96c90869981e7ceb81e",
"md5": "d8fecf8e9c1a2b1a619cb873bcc87c3a",
"sha256": "b7eb8566c0518090517a682c68e4367d99ba41072670c4438d2242e26973d92a",
"size": 37,
"date": "2023-12-01",
"sha1": "fab2c62ea27ead3a21414082be68afa90b51cbb2",
"md5": "134d3e9b8b48a3f1296a2241efc9fb97",
"sha256": "df3b8c89895282ef450ed682e2c6a66c6cce2bc8a02998020be6e6052cda65d2",
"mime_type": "application/json",
"file_type": "JSON data",
"programming_language": null,
Expand All @@ -593,13 +597,13 @@
"name": "test.js",
"base_name": "test",
"extension": ".js",
"size": 8902,
"date": "2022-01-05",
"sha1": "49802e9f59e7fa6baea5ee5d159831b4ecd1989b",
"md5": "46c7d61eb82d3ac4468237301beb6983",
"sha256": "f466a1d3574bf933b8084b8bd2cbc486d9a1f859ae30dc4086caa15676c62db6",
"size": 8675,
"date": "2023-12-01",
"sha1": "2135e026ffb360520d296ae170fe36113606e6fc",
"md5": "d3ffdd77f2eced26602895f9e4b60966",
"sha256": "600ac210b84288ea57738851c5d5b394c5e07c4df470e0d69dfe5638ac0e3e7c",
"mime_type": "text/plain",
"file_type": "ASCII text, with CRLF line terminators",
"file_type": "ASCII text",
"programming_language": "JavaScript",
"is_binary": false,
"is_text": true,
Expand Down
Loading

0 comments on commit 97c121e

Please sign in to comment.