DockerToActivationFileLogStore.scala contains code derived from Akka Sink.combine without attribution
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- scala
- Área
- documentation
Línea de trabajo
Comienza con build/openwhisk/common/scala/src/main/scala/org/apache/openwhisk/core/containerpool/logging/DockerToActivationFileLogStore.scala y el LICENSE de nivel superior. Compara OwSink.combine con Akka 2.6.12 Sink.combine y revisa el contexto relacionado en #260. Se considera terminado cuando el código derivado está correctamente atribuido con el texto de aviso aplicable, o cuando la implementación y el comentario copiados se han reemplazado de forma independiente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
build/openwhisk/common/scala/src/main/scala/org/apache/openwhisk/core/containerpool/logging/DockerToActivationFileLogStore.scala (vendored from Apache OpenWhisk, shipped in the 0.9.0-incubating-RC7 source release) contains code that its own comment says was copied from Akka:
object OwSink {
/**
* Combines two sinks into one sink using the given strategy. The materialized value is a Tuple2 of the materialized
* values of either sink. Code basically copied from {@code Sink.combine}
*/
def combine[T, U, M1, M2](first: Sink[U, M1], second: Sink[U, M2])(
strategy: Int => Graph[UniformFanOutShape[T, U], NotUsed]): Sink[T, (M1, M2)] = {
Sink.fromGraph(GraphDSL.create(first, second)((_, _)) { implicit b => (s1, s2) =>
import GraphDSL.Implicits._
val d = b.add(strategy(2))
d ~> s1
d ~> s2
SinkShape(d.in)
})
}
}
It is adapted from Sink.combine in Akka 2.6.12 (the version OpenWhisk builds against), akka-stream/src/main/scala/akka/stream/scaladsl/Sink.scala lines 315-330, Copyright (C) 2014-2021 Lightbend Inc.
Akka 2.6.x was released under the Apache License 2.0 (Akka moved to the BSL from 2.7.0), so there is no licence conflict, but the derived code is not attributed: the file only carries the ASF header, and the top-level LICENSE does not mention Akka.
Suggested fix, either:
- Add a
LICENSEentry noting thatOwSink.combinein this file is derived from Akka 2.6.12Sink.combine(Apache-2.0, Copyright Lightbend Inc.), and carry any applicable AkkaNOTICEtext; or - Rewrite
OwSink.combineindependently and drop the "copied from" comment. It is a smallGraphDSLgraph; alternatively, Apache Pekko (the ASF fork of Akka 2.6) has the sameSink.combine, and deriving from Pekko would make this ASF-to-ASF.
The same code is in upstream Apache OpenWhisk. Related: #260.
- Lenguaje dominante
- Python
- Estrellas
- 576
- Forks
- 29
- Merge medio
- 3 h 26 min
- PR fusionados (30 d)
- 12
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/openserverless
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
apache/openserverless#269 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
apache/openserverless#267 ·
Los mantenedores suelen responder en 1 día
-
ExecManifest.scala copies the docker/distribution image-reference grammar without attributionAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/openserverless#266 ·
Los mantenedores suelen responder en 1 día
-
Main.scala (OpenWhisk admin tool) contains MIT-licensed code from Scallop without attributionAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/openserverless#264 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/openserverless#262 ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/openserverless
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
raullenchai/Rapid-MLX#4042 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
LearningCircuit/local-deep-research#7067 ·
Los mantenedores suelen responder en 1 día
-
#bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
apache/superset#44923 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
lawndoc/stack-back#123 ·