Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odd behaviour #1472

Open
stefjoosten opened this issue Mar 3, 2024 · 2 comments
Open

Odd behaviour #1472

stefjoosten opened this issue Mar 3, 2024 · 2 comments
Assignees
Labels
A-team Relevant for Ordina A-team deployment devcontainer priority:normal software process installation, build automation, configuration etc.

Comments

@stefjoosten
Copy link
Contributor

stefjoosten commented Mar 3, 2024

What happened

I ran a reasonably straightforward script on a codespace and in a locally running project template:

CONTEXT Issue1472
PURPOSE CONTEXT Issue1472 
{+ There is an error in the Codespace deployment. I'm trying to reproduce it in a small script. +}

RELATION refer[Identifier*Entity] [TOT]

RELATION name[Identifier*Name] [UNI,TOT]

VIEW Identifier : Identifier(name)

INTERFACE Identifiers: "_SESSION";V[SESSION*Identifier] BOX
       [ id : I
       , name : name
       , entity : refer
       ]

ENDCONTEXT

The prototype does NOT behave as expected. Here is a video of the wrong behaviour.

In the following script, I am removing the relation refer

CONTEXT Issue1472a
PURPOSE CONTEXT Issue1472a
{+ There is an error in the Codespace deployment. I'm trying to reproduce it in a small script. +}

RELATION name[Identifier*Name] [UNI,TOT]

VIEW Identifier : Identifier(name)

INTERFACE Identifiers: "_SESSION";V[SESSION*Identifier] BOX
       [ id : I
       , name : name
       ]

ENDCONTEXT

Now, this video shows the behaviour I get. Surprisingly, this is the desired behaviour.

What I expected

I expected both scripts to behave like the second one.

Version of ampersand that was used

Steps to reproduce

  1. Go to the codespace
  2. The experiment is still there, open for investigation.

I reproduced the experiment on a locally running project template and deployed it with docker, just to confirm my hunch that this has nothing to do with deployment. I believe we need a diagnosis first. My gut feeling is this has to do with bitrot.

@stefjoosten stefjoosten added priority:normal deployment software process installation, build automation, configuration etc. devcontainer A-team Relevant for Ordina A-team labels Mar 3, 2024
@stefjoosten
Copy link
Contributor Author

This issue and issue #1471 make it obvious to me that we need API-scenario tests in the regression, to prevent code rot in subsequent versions.

@stefjoosten stefjoosten changed the title Odd behaviour in the Codespace version of Ampersand Odd behaviour Mar 3, 2024
@hanjoosten
Copy link
Member

Which codespace are you running exactly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-team Relevant for Ordina A-team deployment devcontainer priority:normal software process installation, build automation, configuration etc.
Projects
None yet
Development

No branches or pull requests

5 participants