Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: scripts/slave/recipes/skia/swarm_trigger.expected/legacy_skp_version.json

Issue 2402583003: Revert "Fix file.copy recipe_module to not fail if files are already equal." (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "git", 4 "git",
5 "remote", 5 "remote",
6 "set-url", 6 "set-url",
7 "origin", 7 "origin",
8 "https://skia.googlesource.com/skia.git" 8 "https://skia.googlesource.com/skia.git"
9 ], 9 ],
10 "cwd": "[SLAVE_BUILD]/skia", 10 "cwd": "[SLAVE_BUILD]/skia",
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", 731 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
732 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 732 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
733 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", 733 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
734 "@@@STEP_LOG_END@python.inline@@@" 734 "@@@STEP_LOG_END@python.inline@@@"
735 ] 735 ]
736 }, 736 },
737 { 737 {
738 "cmd": [ 738 "cmd": [
739 "python", 739 "python",
740 "-u", 740 "-u",
741 "\nimport shutil\nimport sys\n# Apparently, shutil.copy fails if files are binary-equal on *nix OSes.\n# See http://crbug.com/636168#c8.\nif hasattr(shuti l, '_samefile'):\n if shutil._samefile(sys.argv[1], sys.argv[2]):\n sys.exit (0)\nshutil.copy(sys.argv[1], sys.argv[2])\n", 741 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
742 "[SLAVE_BUILD]/tmp/SKP_VERSION", 742 "[SLAVE_BUILD]/tmp/SKP_VERSION",
743 "/path/to/tmp/" 743 "/path/to/tmp/"
744 ], 744 ],
745 "name": "Get downloaded SKP_VERSION", 745 "name": "Get downloaded SKP_VERSION",
746 "~followup_annotations": [ 746 "~followup_annotations": [
747 "step returned non-zero exit code: 1", 747 "step returned non-zero exit code: 1",
748 "@@@STEP_EXCEPTION@@@" 748 "@@@STEP_EXCEPTION@@@"
749 ] 749 ]
750 }, 750 },
751 { 751 {
752 "cmd": [ 752 "cmd": [
753 "python", 753 "python",
754 "-u", 754 "-u",
755 "\nimport shutil\nimport sys\n# Apparently, shutil.copy fails if files are binary-equal on *nix OSes.\n# See http://crbug.com/636168#c8.\nif hasattr(shuti l, '_samefile'):\n if shutil._samefile(sys.argv[1], sys.argv[2]):\n sys.exit (0)\nshutil.copy(sys.argv[1], sys.argv[2])\n", 755 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
756 "[SLAVE_BUILD]/skia/SKP_VERSION", 756 "[SLAVE_BUILD]/skia/SKP_VERSION",
757 "/path/to/tmp/" 757 "/path/to/tmp/"
758 ], 758 ],
759 "name": "Get expected SKP_VERSION" 759 "name": "Get expected SKP_VERSION"
760 }, 760 },
761 { 761 {
762 "cmd": [ 762 "cmd": [
763 "python", 763 "python",
764 "-u", 764 "-u",
765 "\nimport os, sys\nfrom common import chromium_utils # Error? See https:// crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD irectory(sys.argv[1])\n", 765 "\nimport os, sys\nfrom common import chromium_utils # Error? See https:// crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD irectory(sys.argv[1])\n",
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 825 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
826 "42", 826 "42",
827 "[SLAVE_BUILD]/tmp/SKP_VERSION" 827 "[SLAVE_BUILD]/tmp/SKP_VERSION"
828 ], 828 ],
829 "name": "write SKP_VERSION" 829 "name": "write SKP_VERSION"
830 }, 830 },
831 { 831 {
832 "cmd": [ 832 "cmd": [
833 "python", 833 "python",
834 "-u", 834 "-u",
835 "\nimport shutil\nimport sys\n# Apparently, shutil.copy fails if files are binary-equal on *nix OSes.\n# See http://crbug.com/636168#c8.\nif hasattr(shuti l, '_samefile'):\n if shutil._samefile(sys.argv[1], sys.argv[2]):\n sys.exit (0)\nshutil.copy(sys.argv[1], sys.argv[2])\n", 835 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
836 "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION", 836 "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION",
837 "/path/to/tmp/" 837 "/path/to/tmp/"
838 ], 838 ],
839 "name": "read skimage VERSION" 839 "name": "read skimage VERSION"
840 }, 840 },
841 { 841 {
842 "cmd": [ 842 "cmd": [
843 "python", 843 "python",
844 "-u", 844 "-u",
845 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", 845 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1406 "@@@STEP_LINK@shard #0 isolated out@blah@@@", 1406 "@@@STEP_LINK@shard #0 isolated out@blah@@@",
1407 "@@@STEP_LINK@view steps on Milo@https://luci-milo.appspot.com/swarming/ta sk/148aa78d7aa0000@@@" 1407 "@@@STEP_LINK@view steps on Milo@https://luci-milo.appspot.com/swarming/ta sk/148aa78d7aa0000@@@"
1408 ] 1408 ]
1409 }, 1409 },
1410 { 1410 {
1411 "name": "$result", 1411 "name": "$result",
1412 "recipe_result": null, 1412 "recipe_result": null,
1413 "status_code": 0 1413 "status_code": 0
1414 } 1414 }
1415 ] 1415 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698