Skip to content

Commit 719fd82

Browse files
de-emoji
1 parent 18bc1d3 commit 719fd82

File tree

8 files changed

+33
-33
lines changed

8 files changed

+33
-33
lines changed

MIGRATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ This guide helps you migrate from the deprecated direct upload functionality to
66

77
Coverage.jl has been modernized to work with the official uploaders from Codecov and Coveralls, as both services have deprecated support for 3rd party uploaders.
88

9-
### Before (Deprecated)
9+
### Before (Deprecated)
1010
```julia
1111
using Coverage
1212
fcs = process_folder("src")
13-
Codecov.submit(fcs) # Deprecated
14-
Coveralls.submit(fcs) # Deprecated
13+
Codecov.submit(fcs) # Deprecated
14+
Coveralls.submit(fcs) # Deprecated
1515
```
1616

17-
### After (Modern)
17+
### After (Modern)
1818
```julia
1919
using Coverage
2020
fcs = process_folder("src")

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Coverage.jl
99

1010
**Coverage.jl has been modernized** to work with the official uploaders from Codecov and Coveralls.
1111
The package now provides:
12-
- 🔄 **Coverage data processing** using CoverageTools.jl
13-
- 📤 **Export functionality** for official uploaders
14-
- 🚀 **Automated upload helpers** for CI environments
15-
- 📋 **Helper scripts** for easy integration
12+
- **Coverage data processing** using CoverageTools.jl
13+
- **Export functionality** for official uploaders
14+
- **Automated upload helpers** for CI environments
15+
- **Helper scripts** for easy integration
1616

1717
> [!NOTE]
1818
> **Coverage.jl now uses official uploaders from Codecov and Coveralls** for better reliability and future compatibility. The familiar `Codecov.submit()` and `Coveralls.submit()` functions continue to work seamlessly.

scripts/script_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function main_with_error_handling(main_func)
6262
try
6363
return main_func()
6464
catch e
65-
println("Error: $(sprint(Base.display_error, e))")
65+
println("Error: $(sprint(Base.display_error, e))")
6666
return 1
6767
end
6868
end

scripts/upload_codecov.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function main()
4444
fcs = process_folder(folder)
4545

4646
if isempty(fcs)
47-
println("No coverage data found in folder: $folder")
47+
println("No coverage data found in folder: $folder")
4848
return 1
4949
end
5050

scripts/upload_coverage.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ function main()
5555
# Check results
5656
if service == :both
5757
success = all(values(result))
58-
println(success ? "All uploads successful" : "Some uploads failed")
58+
println(success ? "All uploads successful" : "Some uploads failed")
5959
else
6060
success = result
61-
println(success ? "Upload successful" : "Upload failed")
61+
println(success ? "Upload successful" : "Upload failed")
6262
end
6363

6464
return success ? 0 : 1

scripts/upload_coveralls.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,23 @@ function main()
8888
args = parse_commandline()
8989

9090
# Show configuration
91-
println("📊 Coveralls Upload Configuration")
91+
println("Coveralls Upload Configuration")
9292
println("Folder: $(args["folder"])")
9393
println("Format: $(args["format"])")
9494
println("Token: $(args["token"] !== nothing ? "<provided>" : "from environment")")
9595
println("Dry run: $(args["dry-run"])")
9696
println()
9797

9898
# Process coverage
99-
println("🔄 Processing coverage data...")
99+
println("Processing coverage data...")
100100
fcs = process_folder(args["folder"])
101101

102102
if isempty(fcs)
103-
println("No coverage data found in folder: $(args["folder"])")
103+
println("No coverage data found in folder: $(args["folder"])")
104104
exit(1)
105105
end
106106

107-
println("Found coverage data for $(length(fcs)) files")
107+
println("Found coverage data for $(length(fcs)) files")
108108

109109
# Upload to Coveralls
110110
success = upload_to_coveralls(fcs;
@@ -114,15 +114,15 @@ function main()
114114
)
115115

116116
if success
117-
println("🎉 Successfully uploaded to Coveralls!")
117+
println("Successfully uploaded to Coveralls!")
118118
exit(0)
119119
else
120-
println("Failed to upload to Coveralls")
120+
println("Failed to upload to Coveralls")
121121
exit(1)
122122
end
123123

124124
catch e
125-
println("Error: $(sprint(Base.display_error, e))")
125+
println("Error: $(sprint(Base.display_error, e))")
126126
exit(1)
127127
end
128128
end

src/ci_integration_functions.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,14 @@ function finish_coveralls_parallel(; token=nothing, build_num=nothing)
352352
)
353353

354354
if response.status == 200
355-
@info "Successfully signaled parallel job completion to Coveralls"
355+
@info "Successfully signaled parallel job completion to Coveralls"
356356
return true
357357
else
358-
@error "Failed to signal parallel completion" status=response.status
358+
@error "Failed to signal parallel completion" status=response.status
359359
return false
360360
end
361361
catch e
362-
@error "Error signaling parallel completion to Coveralls" exception=e
362+
@error "Error signaling parallel completion to Coveralls" exception=e
363363
return false
364364
end
365365
end

test/runtests.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -779,13 +779,13 @@ withenv(
779779

780780
# The fact that it started without immediate crash is good enough
781781
@test true # If we get here, the executable at least started
782-
@info "Codecov uploader executable verified (can start)"
782+
@info "Codecov uploader executable verified (can start)"
783783
catch e
784784
# If it fails with a specific error message, that's actually good
785785
# (means it's running but needs proper args/config)
786786
if isa(e, ProcessFailedException) && e.procs[1].exitcode != 127
787787
@test true # Non-127 exit means executable works (127 = not found)
788-
@info "Codecov uploader executable verified (exits with expected error)"
788+
@info "Codecov uploader executable verified (exits with expected error)"
789789
else
790790
@warn "Codecov uploader may not be functional" exception=e
791791
# Don't fail the test - platform issues might prevent execution
@@ -797,7 +797,7 @@ withenv(
797797
try
798798
output = read(`$exe_path --version`, String)
799799
@test !isempty(strip(output))
800-
@info "Codecov uploader version: $(strip(output))"
800+
@info "Codecov uploader version: $(strip(output))"
801801
catch e
802802
# Version command might not be available, that's ok
803803
@debug "Version command not available" exception=e
@@ -842,12 +842,12 @@ withenv(
842842

843843
# The fact that it started without immediate crash is good enough
844844
@test true
845-
@info "Coveralls reporter executable verified (can start)"
845+
@info "Coveralls reporter executable verified (can start)"
846846
catch e
847847
# If it fails with a specific error message, that's actually good
848848
if isa(e, ProcessFailedException) && e.procs[1].exitcode != 127
849849
@test true # Non-127 exit means executable works
850-
@info "Coveralls reporter executable verified (exits with expected error)"
850+
@info "Coveralls reporter executable verified (exits with expected error)"
851851
else
852852
@warn "Coveralls reporter may not be functional" exception=e
853853
@test_skip "Coveralls executable functionality"
@@ -858,13 +858,13 @@ withenv(
858858
try
859859
output = read(`$exe_path --version`, String)
860860
@test !isempty(strip(output))
861-
@info "Coveralls reporter version: $(strip(output))"
861+
@info "Coveralls reporter version: $(strip(output))"
862862
catch e
863863
# Try alternative version command
864864
try
865865
output = read(`$exe_path version`, String)
866866
@test !isempty(strip(output))
867-
@info "Coveralls reporter version: $(strip(output))"
867+
@info "Coveralls reporter version: $(strip(output))"
868868
catch e2
869869
@debug "Version command not available" exception=e2
870870
end
@@ -908,13 +908,13 @@ withenv(
908908
end
909909

910910
@test true
911-
@info "Codecov can process LCOV files"
911+
@info "Codecov can process LCOV files"
912912
catch e
913913
if isa(e, ProcessFailedException)
914914
# Check if it's a validation error vs system error
915915
if e.procs[1].exitcode != 127 # Not "command not found"
916916
@test true # File was processed, error might be network/auth related
917-
@info "Codecov processed file (expected error without token)"
917+
@info "Codecov processed file (expected error without token)"
918918
else
919919
@test_skip "Codecov executable system error"
920920
end
@@ -950,7 +950,7 @@ withenv(
950950
end
951951

952952
@test true
953-
@info "Coveralls can process LCOV files"
953+
@info "Coveralls can process LCOV files"
954954
catch e
955955
# Try without --dry-run flag (might not be supported)
956956
try
@@ -961,7 +961,7 @@ withenv(
961961
kill(result)
962962
end
963963
@test true
964-
@info "Coveralls executable responds to commands"
964+
@info "Coveralls executable responds to commands"
965965
catch e2
966966
@test_skip "Coveralls file processing test failed"
967967
end

0 commit comments

Comments
 (0)