Comments (7)
Here's e2e
package test
import (
"os/exec"
"testing"
"github.com/stretchr/testify/require"
)
func Test(t *testing.T) {
cmd := exec.Command("neva", "run", "main")
out, err := cmd.CombinedOutput()
require.NoError(t, err)
require.Equal(
t,
`is odd
is odd
is even
is even
is odd
is odd
is even
is even
is odd
is odd
is even
is even
is odd
is odd
is even
is even
is odd
is odd
is even
is even
`,
string(out),
)
require.Equal(t, 0, cmd.ProcessState.ExitCode())
}
from neva.
printSlow
version will also trigger the bug
component PrintSlow(data string) (sig any) {
nodes { p1 Println, time.Sleep }
200000000 -> sleep:dur // 200 ms
:data -> p1 -> sleep:data -> :sig
}
from neva.
Just to be pedantic, #575 is about early termination whereas this one is about items printed out of order. Is that a correct interpretation?
from neva.
@Catya3 yeah, don't sure if they are related
unpredictable termination was because of branching, basically data-race
this one also looks like some kind of race
from neva.
It looks like For actually fixes the unpredictable termination and now we have items executed out of order. Not sure what causes it
from neva.
Yeah I think the same. I just wanna keep 575 opened until we fix this one, just to be sure
from neva.
Closed in favor of #644
from neva.
Related Issues (20)
- Race-condition with fan-in pattern HOT 3
- Force Outport Operator HOT 3
- Data processing components out of the box
- `Find` component HOT 1
- `Has` component HOT 2
- `Collate` component
- Reduce noise when using ports by replacing `:` with `.` HOT 1
- HTTP Client
- Improve struct field selectors syntax
- Move println to io HOT 3
- Reduce as higher order component for binary handlers HOT 1
- Move Lock to sync
- Alternative `nodes` syntax HOT 1
- `os.Args` has no inports
- Package with mutable APIs
- `BufferSize` for channels in runtime HOT 1
- Iterator protocol (early termination for stream processing for both parent and child)
- Graceful shutdown on ctrl+C
- Cancelation Problem HOT 2
- [Desugarer] original unnamed DI arg is still there after desugaring HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neva.