Replace deprecated `set` constructor and its order names in integration tests

The name `set` and order names "stable", "compile", "naive_link", and "link"
are deprecated and will soon be removed from Blaze.

PiperOrigin-RevId: 166341984
diff --git a/src/test/shell/bazel/bazel_java_test.sh b/src/test/shell/bazel/bazel_java_test.sh
index a4f5db3..a12cab4 100755
--- a/src/test/shell/bazel/bazel_java_test.sh
+++ b/src/test/shell/bazel/bazel_java_test.sh
@@ -183,7 +183,7 @@
     host_javabase = ctx.attr._host_javabase
   )
   return struct(
-    files = set([output_jar]),
+    files = depset([output_jar]),
     providers = [compilation_provider]
   )
 
@@ -300,7 +300,7 @@
     host_javabase = ctx.attr._host_javabase
   )
   return struct(
-    files = set([output_jar]),
+    files = depset([output_jar]),
     providers = [compilation_provider]
   )
 
@@ -377,7 +377,7 @@
     host_javabase = ctx.attr._host_javabase
   )
   return struct(
-    files = set([output_jar]),
+    files = depset([output_jar]),
     providers = [compilation_provider]
   )
 
diff --git a/src/test/shell/integration/build_event_stream_test.sh b/src/test/shell/integration/build_event_stream_test.sh
index 18976a9..7672dfe 100755
--- a/src/test/shell/integration/build_event_stream_test.sh
+++ b/src/test/shell/integration/build_event_stream_test.sh
@@ -110,7 +110,7 @@
             output=aspect_out,
             content = "Hello from aspect")
     return struct(output_groups={
-        "aspect-out" : set([aspect_out]) })
+        "aspect-out" : depset([aspect_out]) })
 
 simple_aspect = aspect(implementation=_simple_aspect_impl)
 EOF
@@ -124,7 +124,7 @@
             command = "false",
         )
     return struct(output_groups={
-        "aspect-out" : set([aspect_out]) })
+        "aspect-out" : depset([aspect_out]) })
 
 failing_aspect = aspect(implementation=_failing_aspect_impl)
 EOF
diff --git a/src/test/shell/integration/discard_graph_edges_test.sh b/src/test/shell/integration/discard_graph_edges_test.sh
index e6ce8c0..067f136 100755
--- a/src/test/shell/integration/discard_graph_edges_test.sh
+++ b/src/test/shell/integration/discard_graph_edges_test.sh
@@ -261,7 +261,7 @@
 
   cat > conflict/conflict_rule.bzl <<EOF || fail "Couldn't write bzl file"
 def _create(ctx):
-  files_to_build = set(ctx.outputs.outs)
+  files_to_build = depset(ctx.outputs.outs)
   intemediate_outputs = [ctx.actions.declare_file("bar")]
   intermediate_cmd = "cat %s > %s" % (ctx.attr.name, intemediate_outputs[0].path)
   action_cmd = "touch " + list(files_to_build)[0].path