Fix console error on discarding new files

In Web IDE, when you "discard all changes" for any newly added
or uploaded file, an error occurs. This is because the Web IDE tries to
close that file, but the closeFile action is called with the wrong type
of parameter.
184 jobs for !21537 with 27244-webide-discard-all-changes in 81 minutes and 1 second (queued for 7 seconds)
detached
Status Job ID Name Coverage
  Prepare
passed #375713790
docker gitlab-org
build-qa-image

00:06:42

passed #375713787
gitlab-org
compile-assets pull-cache

00:12:19

passed #375713788
gitlab-org
compile-assets pull-cache foss

00:07:59

manual #375713791
gitlab-org allowed to fail manual
manual:review-cleanup
passed #375713793
retrieve-tests-metadata

00:02:04

passed #375713792
gitlab-org
review-stop-failed-deployment

00:00:37

passed #375713789
gitlab-org
setup-test-env

00:11:21

 
  Test
passed #375713809
code_quality

00:12:04

passed #375713979
gitlab-org
danger-review

00:03:43

passed #375713974
gitlab-org
db:check-schema

00:05:40

passed #375713975
gitlab-org
db:migrate-from-v11.11.0

00:11:18

passed #375713972
gitlab-org
db:migrate:reset

00:07:22

passed #375713976
gitlab-org
db:rollback

00:04:46

passed #375713978
gitlab-org
db:rollback geo

00:04:26

passed #375713811
dependency_scanning

00:10:26

passed #375713970
gitlab-org
downtime_check

00:06:12

passed #375713795
docker gitlab-org
gitlab:assets:compile pull-cache

00:22:50

passed #375713977
gitlab-org
gitlab:setup

00:07:27

passed #375713981
gitlab-org
gitlab_git_test

00:01:03

passed #375713794
gitlab-org
graphql-reference-verify

00:07:16

passed #375713798
gitlab-org
jest

00:27:28

passed #375713799
gitlab-org
jest-foss

00:23:00

passed #375713796
gitlab-org
karma

00:19:03

78.07%
passed #375713797
gitlab-org
karma-foss

00:13:53

passed #375713983
gitlab-org
lint-ci-gitlab

00:01:08

passed #375713805
gitlab-org
memory-on-boot

00:09:36

passed #375713804
gitlab-org
memory-static

00:08:52

passed #375713801
gitlab-org
qa-frontend-node:10

00:15:41

passed #375713800
gitlab-org
qa-frontend-node:8

00:17:55

passed #375713802
gitlab-org
qa-frontend-node:latest

00:17:18

passed #375713806
gitlab-org
qa:internal

00:05:01

passed #375713807
gitlab-org
qa:selectors

00:04:01

passed #375713808
gitlab-org
qa:selectors-foss

00:03:36

passed #375713963
gitlab-org
rspec fast_spec_helper

00:07:44

passed #375713866
gitlab-org
rspec integration pg9 1/6

00:17:56

passed #375713867
gitlab-org
rspec integration pg9 2/6

00:20:09

passed #375713868
gitlab-org
rspec integration pg9 3/6

00:23:06

passed #375713869
gitlab-org
rspec integration pg9 4/6

00:19:57

passed #375713870
gitlab-org
rspec integration pg9 5/6

00:21:35

passed #375713871
gitlab-org
rspec integration pg9 6/6

00:25:50

passed #375713872
gitlab-org
rspec integration pg9-foss 1/6

00:20:21

passed #375713873
gitlab-org
rspec integration pg9-foss 2/6

00:19:03

passed #375713874
gitlab-org
rspec integration pg9-foss 3/6

00:18:18

passed #375713875
gitlab-org
rspec integration pg9-foss 4/6

00:18:26

passed #375713876
gitlab-org
rspec integration pg9-foss 5/6

00:17:49

passed #375713877
gitlab-org
rspec integration pg9-foss 6/6

00:21:39

passed #375713812
gitlab-org
rspec migration pg9 1/4

00:09:46

passed #375713813
gitlab-org
rspec migration pg9 2/4

00:16:31

passed #375713814
gitlab-org
rspec migration pg9 3/4

00:21:46

passed #375713815
gitlab-org
rspec migration pg9 4/4

00:17:13

passed #375713816
gitlab-org
rspec migration pg9-foss 1/4

00:10:29

passed #375713817
gitlab-org
rspec migration pg9-foss 2/4

00:18:24

passed #375713818
gitlab-org
rspec migration pg9-foss 3/4

00:20:48

passed #375713819
gitlab-org
rspec migration pg9-foss 4/4

00:21:49

passed #375713879
gitlab-org
rspec system pg9 1/24

00:14:24

passed #375713888
gitlab-org
rspec system pg9 10/24

00:18:13

passed #375713889
gitlab-org
rspec system pg9 11/24

00:14:48

passed #375713890
gitlab-org
rspec system pg9 12/24

00:13:26

passed #375713891
gitlab-org
rspec system pg9 13/24

00:15:55

passed #375713892
gitlab-org
rspec system pg9 14/24

00:15:30

passed #375713893
gitlab-org
rspec system pg9 15/24

00:18:56

passed #375713894
gitlab-org
rspec system pg9 16/24

00:13:17

passed #375713896
gitlab-org
rspec system pg9 17/24

00:17:14

passed #375713897
gitlab-org
rspec system pg9 18/24

00:15:44

passed #375713898
gitlab-org
rspec system pg9 19/24

00:17:37

passed #375713880
gitlab-org
rspec system pg9 2/24

00:18:41

passed #375713899
gitlab-org
rspec system pg9 20/24

00:14:44

passed #375713900
gitlab-org
rspec system pg9 21/24

00:16:52

passed #375713901
gitlab-org
rspec system pg9 22/24

00:17:58

passed #375713902
gitlab-org
rspec system pg9 23/24

00:16:42

passed #375713903
gitlab-org
rspec system pg9 24/24

00:16:43

passed #375713881
gitlab-org
rspec system pg9 3/24

00:15:33

passed #375713882
gitlab-org
rspec system pg9 4/24

00:19:22

passed #375713883
gitlab-org
rspec system pg9 5/24

00:13:03

passed #375713884
gitlab-org
rspec system pg9 6/24

00:15:25

passed #375713885
gitlab-org
rspec system pg9 7/24

00:19:04

passed #375713886
gitlab-org
rspec system pg9 8/24

00:19:33

passed #375713887
gitlab-org
rspec system pg9 9/24

00:18:54

passed #375713904
gitlab-org
rspec system pg9-foss 1/24

00:17:21

passed #375713914
gitlab-org
rspec system pg9-foss 10/24

00:13:57

passed #375713915
gitlab-org
rspec system pg9-foss 11/24

00:16:20

passed #375713916
gitlab-org
rspec system pg9-foss 12/24

00:16:52

passed #375713917
gitlab-org
rspec system pg9-foss 13/24

00:17:53

passed #375713918
gitlab-org
rspec system pg9-foss 14/24

00:17:34

passed #375713919
gitlab-org
rspec system pg9-foss 15/24

00:16:23

passed #375713920
gitlab-org
rspec system pg9-foss 16/24

00:13:27

passed #375713921
gitlab-org
rspec system pg9-foss 17/24

00:15:29

passed #375713922
gitlab-org
rspec system pg9-foss 18/24

00:18:26

passed #375713923
gitlab-org
rspec system pg9-foss 19/24

00:15:27

passed #375713905
gitlab-org
rspec system pg9-foss 2/24

00:17:07

passed #375713924
gitlab-org
rspec system pg9-foss 20/24

00:13:06

passed #375713925
gitlab-org
rspec system pg9-foss 21/24

00:14:18

passed #375713928
gitlab-org
rspec system pg9-foss 22/24

00:15:13

passed #375713930
gitlab-org
rspec system pg9-foss 23/24

00:14:18

passed #375713934
gitlab-org
rspec system pg9-foss 24/24

00:15:19

passed #375713907
gitlab-org
rspec system pg9-foss 3/24

00:16:29

passed #375713908
gitlab-org
rspec system pg9-foss 4/24

00:16:12

passed #375713909
gitlab-org
rspec system pg9-foss 5/24

00:13:18

passed #375713910
gitlab-org
rspec system pg9-foss 6/24

00:17:27

passed #375713911
gitlab-org
rspec system pg9-foss 7/24

00:16:15

passed #375713912
gitlab-org
rspec system pg9-foss 8/24

00:15:44

passed #375713913
gitlab-org
rspec system pg9-foss 9/24

00:17:43

passed #375713820
gitlab-org
rspec unit pg9 1/20

00:20:38

passed #375713829
gitlab-org
rspec unit pg9 10/20

00:21:15

passed #375713830
gitlab-org
rspec unit pg9 11/20

00:18:07

passed #375713831
gitlab-org
rspec unit pg9 12/20

00:18:41

passed #375713832
gitlab-org
rspec unit pg9 13/20

00:17:27

passed #375713833
gitlab-org
rspec unit pg9 14/20

00:20:18

passed #375713834
gitlab-org
rspec unit pg9 15/20

00:18:59

passed #375713835
gitlab-org
rspec unit pg9 16/20

00:15:48

passed #375713836
gitlab-org
rspec unit pg9 17/20

00:21:23

passed #375713837
gitlab-org
rspec unit pg9 18/20

00:23:23

passed #375713838
gitlab-org
rspec unit pg9 19/20

00:18:36

passed #375713821
gitlab-org
rspec unit pg9 2/20

00:15:36

passed #375713839
gitlab-org
rspec unit pg9 20/20

00:19:34

passed #375713822
gitlab-org
rspec unit pg9 3/20

00:15:41

passed #375713823
gitlab-org
rspec unit pg9 4/20

00:18:29

passed #375713824
gitlab-org
rspec unit pg9 5/20

00:18:46

passed #375713825
gitlab-org
rspec unit pg9 6/20

00:18:30

passed #375713826
gitlab-org
rspec unit pg9 7/20

00:19:46

passed #375713827
gitlab-org
rspec unit pg9 8/20

00:17:58

passed #375713828
gitlab-org
rspec unit pg9 9/20

00:19:24

passed #375713840
gitlab-org
rspec unit pg9-foss 1/20

00:22:13

passed #375713853
gitlab-org
rspec unit pg9-foss 10/20

00:22:39

passed #375713854
gitlab-org
rspec unit pg9-foss 11/20

00:17:53

passed #375713856
gitlab-org
rspec unit pg9-foss 12/20

00:18:44

passed #375713858
gitlab-org
rspec unit pg9-foss 13/20

00:19:57

passed #375713859
gitlab-org
rspec unit pg9-foss 14/20

00:20:08

passed #375713860
gitlab-org
rspec unit pg9-foss 15/20

00:19:25

passed #375713861
gitlab-org
rspec unit pg9-foss 16/20

00:18:17

passed #375713862
gitlab-org
rspec unit pg9-foss 17/20

00:18:56

passed #375713863
gitlab-org
rspec unit pg9-foss 18/20

00:19:51

passed #375713864
gitlab-org
rspec unit pg9-foss 19/20

00:21:51

passed #375713843
gitlab-org
rspec unit pg9-foss 2/20

00:17:53

passed #375713865
gitlab-org
rspec unit pg9-foss 20/20

00:19:04

passed #375713844
gitlab-org
rspec unit pg9-foss 3/20

00:17:44

passed #375713846
gitlab-org
rspec unit pg9-foss 4/20

00:18:01

passed #375713848
gitlab-org
rspec unit pg9-foss 5/20

00:19:03

passed #375713849
gitlab-org
rspec unit pg9-foss 6/20

00:17:55

passed #375713850
gitlab-org
rspec unit pg9-foss 7/20

00:18:04

passed #375713851
gitlab-org
rspec unit pg9-foss 8/20

00:20:58

passed #375713852
gitlab-org
rspec unit pg9-foss 9/20

00:18:25

passed #375713959
gitlab-org
rspec-ee integration pg10 geo

00:09:55

passed #375713945
gitlab-org
rspec-ee integration pg9 1/3

00:15:56

passed #375713946
gitlab-org
rspec-ee integration pg9 2/3

00:17:34

passed #375713947
gitlab-org
rspec-ee integration pg9 3/3

00:18:25

passed #375713955
gitlab-org
rspec-ee integration pg9 geo

00:07:57

passed #375713938
gitlab-org
rspec-ee migration pg9 1/2

00:06:51

passed #375713939
gitlab-org
rspec-ee migration pg9 2/2

00:08:07

passed #375713961
gitlab-org
rspec-ee system pg10 geo

00:09:01

passed #375713948
gitlab-org
rspec-ee system pg9 1/5

00:18:23

passed #375713949
gitlab-org
rspec-ee system pg9 2/5

00:19:12

passed #375713950
gitlab-org
rspec-ee system pg9 3/5

00:18:28

passed #375713951
gitlab-org
rspec-ee system pg9 4/5

00:21:48

passed #375713952
gitlab-org
rspec-ee system pg9 5/5

00:19:28

passed #375713956
gitlab-org
rspec-ee system pg9 geo

00:07:47

passed #375713957
gitlab-org
rspec-ee unit pg10 geo 1/2

00:13:41

passed #375713958
gitlab-org
rspec-ee unit pg10 geo 2/2

00:19:53

passed #375713940
gitlab-org
rspec-ee unit pg9 1/5

00:18:32

passed #375713941
gitlab-org
rspec-ee unit pg9 2/5

00:22:59

passed #375713942
gitlab-org
rspec-ee unit pg9 3/5

00:25:21

passed #375713943
gitlab-org
rspec-ee unit pg9 4/5

00:25:39

passed #375713944
gitlab-org
rspec-ee unit pg9 5/5

00:22:43

passed #375713953
gitlab-org
rspec-ee unit pg9 geo 1/2

00:12:27

passed #375713954
gitlab-org
rspec-ee unit pg9 geo 2/2

00:19:20

passed #375713810
sast

00:11:16

passed #375713966
gitlab-org
static-analysis 1/2

00:15:02

passed #375713969
gitlab-org
static-analysis 2/2

00:09:03

passed #375713803
gitlab-org
webpack-dev-server

00:08:45

 
  Post Test
passed #375713984
gitlab-org
coverage

00:07:44

97.45%
failed #375713985
gitlab-org allowed to fail
flaky-examples-check

00:04:27

 
  Review Prepare
passed #375713986
gitlab-org
review-build-cng

00:30:08

 
  Review
passed #375713987
gitlab-org
review-deploy

00:08:39

passed #375713988
gitlab-org manual
review-stop

00:00:29

 
  Qa
passed #375713990
dast

00:06:48

manual #375713989
allowed to fail manual
package-and-qa-manual
passed #375713998
docker gitlab-org
review-performance

00:04:25

manual #375713992
docker gitlab-org allowed to fail manual
review-qa-all 1/5
manual #375713993
docker gitlab-org allowed to fail manual
review-qa-all 2/5
manual #375713995
docker gitlab-org allowed to fail manual
review-qa-all 3/5
manual #375713996
docker gitlab-org allowed to fail manual
review-qa-all 4/5
manual #375713997
docker gitlab-org allowed to fail manual
review-qa-all 5/5
passed #375713991
docker gitlab-org
review-qa-smoke

00:06:48

 
  Post Qa
manual #375713999
gitlab-org allowed to fail manual
parallel-spec-reports
 
Name Stage Failure
failed
flaky-examples-check Post Test
    "first_flaky_at": "2019-12-11 08:28:33 +0000",
"last_flaky_at": "2019-12-11 08:28:33 +0000",
"last_flaky_job": "https://gitlab.com/gitlab-org/gitlab/-/jobs/375713876"
}
}
Running after script...
$ date
Wed Dec 11 08:44:20 UTC 2019
ERROR: Job failed: exit code 1