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

The HSE compiler #318

Merged
merged 20 commits into from
Aug 24, 2021
Merged

The HSE compiler #318

merged 20 commits into from
Aug 24, 2021

Conversation

nlchar
Copy link
Contributor

@nlchar nlchar commented Aug 20, 2021

No description provided.

@codecov
Copy link

codecov bot commented Aug 20, 2021

Codecov Report

Merging #318 (426586e) into master (a8b6cc4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #318   +/-   ##
=========================================
  Coverage     89.12%   89.12%           
  Complexity       79       79           
=========================================
  Files             6        6           
  Lines           285      285           
  Branches         30       30           
=========================================
  Hits            254      254           
  Misses           25       25           
  Partials          6        6           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a8b6cc4...426586e. Read the comment docs.

@nlchar
Copy link
Contributor Author

nlchar commented Aug 22, 2021

@yegor256 @kniazkov please have a look

eo-runtime/pom.xml Outdated Show resolved Hide resolved
eo-parser/pom.xml Outdated Show resolved Hide resolved
<artifactId>hamcrest-core</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nlchar this is redundant, we have it coming from the parent. Just delete it here, I'm sure everything will work just fine.

eo-maven-plugin/pom.xml Outdated Show resolved Hide resolved
@yegor256
Copy link
Member

@nlchar many thanks! Looks very good, however I've made a few comments above.

@nlchar
Copy link
Contributor Author

nlchar commented Aug 23, 2021

@yegor256 thank you for the review. I've tried to cover all of your comments. Please, have a look one more time.

@nlchar
Copy link
Contributor Author

nlchar commented Aug 23, 2021

Could you release this repo in case if the pr is ok, please?

@yegor256
Copy link
Member

@nlchar hold on, let me check what's going on... I can't reproduce this locally

@yegor256
Copy link
Member

@rultor merge

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor merge

@nlchar @yegor256 Oops, I failed. You can see the full log here (spent 26s)

+ '[' -z 'export '\''MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g'\''' ';' 'export '\''JAVA_OPTS=-XX:MaxPermSize=256m -Xmx1g'\''' ';' 'export '\''[email protected]:cqfn/eo.git'\''' ';' 'export '\''pull_id=318'\''' ';' 'export '\''[email protected]:HSE-Eolang/eo.git'\''' ';' 'export '\''fork_branch=master'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''pull_title=The HSE compiler'\''' ';' 'export '\''author=yegor256'\''' ';' 'sudo update-java-alternatives -s java-1.8.0-openjdk-amd64' ';' 'sudo gem install pdd' ';' 'sudo gem install xcop' ';' 'pdd --file=/dev/null' ';' 'mvn clean install -Pqulice --errors -Dstyle.color=never' ';'
+ sensitive=()
+ rm -rf .gpg
+ cd repo
+ git remote add fork [email protected]:HSE-Eolang/eo.git
+ git remote update
Fetching origin
Fetching fork
From github.com:HSE-Eolang/eo
 * [new branch]      155        -> fork/155
 * [new branch]      157        -> fork/157
 * [new branch]      159        -> fork/159
 * [new branch]      161        -> fork/161
 * [new branch]      164        -> fork/164
 * [new branch]      168        -> fork/168
 * [new branch]      17         -> fork/17
 * [new branch]      173        -> fork/173
 * [new branch]      180        -> fork/180
 * [new branch]      182        -> fork/182
 * [new branch]      208        -> fork/208
 * [new branch]      211        -> fork/211
 * [new branch]      215        -> fork/215
 * [new branch]      216        -> fork/216
 * [new branch]      222        -> fork/222
 * [new branch]      239        -> fork/239
 * [new branch]      256        -> fork/256
 * [new branch]      258        -> fork/258
 * [new branch]      266        -> fork/266
 * [new branch]      269        -> fork/269
 * [new branch]      271        -> fork/271
 * [new branch]      273        -> fork/273
 * [new branch]      276        -> fork/276
 * [new branch]      39         -> fork/39
 * [new branch]      58         -> fork/58
 * [new branch]      83         -> fork/83
 * [new branch]      gh-pages   -> fork/gh-pages
 * [new branch]      master     -> fork/master
+ args=
+ '[' default == default ']'
+ args=' --ff'
+ '[' default == no ']'
+ '[' default == only ']'
+ export BRANCH=__rultor
+ BRANCH=__rultor
++ git show-branch __rultor
++ wc -l
+ '[' 0 -gt 0 ']'
+ git checkout -B __rultor fork/master
error: Your local changes to the following files would be overwritten by checkout:
	sandbox/run.cmd
Please, commit your changes or stash them before you can switch branches.
Aborting
'cid' file is absent, container wasn't started correctly

@yegor256
Copy link
Member

@rultor merge

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor merge

@nlchar @yegor256 Oops, I failed. You can see the full log here (spent 2min)

+ cd repo
+ git remote add fork [email protected]:HSE-Eolang/eo.git
+ git remote update
Fetching origin
Fetching fork
From github.com:HSE-Eolang/eo
 * [new branch]      155        -> fork/155
 * [new branch]      157        -> fork/157
 * [new branch]      159        -> fork/159
 * [new branch]      161        -> fork/161
 * [new branch]      164        -> fork/164
 * [new branch]      168        -> fork/168
 * [new branch]      17         -> fork/17
 * [new branch]      173        -> fork/173
 * [new branch]      180        -> fork/180
 * [new branch]      182        -> fork/182
 * [new branch]      208        -> fork/208
 * [new branch]      211        -> fork/211
 * [new branch]      215        -> fork/215
 * [new branch]      216        -> fork/216
 * [new branch]      222        -> fork/222
 * [new branch]      239        -> fork/239
 * [new branch]      256        -> fork/256
 * [new branch]      258        -> fork/258
 * [new branch]      266        -> fork/266
 * [new branch]      269        -> fork/269
 * [new branch]      271        -> fork/271
 * [new branch]      273        -> fork/273
 * [new branch]      276        -> fork/276
 * [new branch]      39         -> fork/39
 * [new branch]      58         -> fork/58
 * [new branch]      83         -> fork/83
 * [new branch]      gh-pages   -> fork/gh-pages
 * [new branch]      master     -> fork/master
+ args=
+ '[' default == default ']'
+ args=' --ff'
+ '[' default == no ']'
+ '[' default == only ']'
+ export BRANCH=__rultor
+ BRANCH=__rultor
++ git show-branch __rultor
++ wc -l
+ '[' 0 -gt 0 ']'
+ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   sandbox/run.cmd

no changes added to commit (use "git add" and/or "git commit -a")
+ git checkout -B __rultor fork/master
error: Your local changes to the following files would be overwritten by checkout:
	sandbox/run.cmd
Please, commit your changes or stash them before you can switch branches.
Aborting
'cid' file is absent, container wasn't started correctly

@yegor256
Copy link
Member

@nlchar I just did this on the server, where Rultor is working (Ubuntu 18):

$ git clone https://github.com/cqfn/eo.git repo
Cloning into 'repo'...
remote: Enumerating objects: 11763, done.
remote: Counting objects: 100% (1051/1051), done.
remote: Compressing objects: 100% (517/517), done.
remote: Total 11763 (delta 588), reused 871 (delta 439), pack-reused 10712
Receiving objects: 100% (11763/11763), 1.52 MiB | 883.00 KiB/s, done.
Resolving deltas: 100% (5372/5372), done.
Checking connectivity... done.
yegor@b4:/tmp$ cd repo/
yegor@b4:/tmp/repo$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   sandbox/run.cmd

no changes added to commit (use "git add" and/or "git commit -a")
yegor@b4:/tmp/repo$ git diff
warning: CRLF will be replaced by LF in sandbox/run.cmd.
The file will have its original line endings in your working directory.
diff --git a/sandbox/run.cmd b/sandbox/run.cmd
index d917475..1981487 100644
--- a/sandbox/run.cmd
+++ b/sandbox/run.cmd
@@ -1,2 +1,2 @@
-java -cp "target/classes;target/eo-runtime.jar" org.eolang.phi.Main sandbox.app %*
-pause
+java -cp "target/classes;target/eo-runtime.jar" org.eolang.phi.Main sandbox.app %*
+pause

It seems that something is wrong with the master branch. I will try to fix now.

yegor256 added a commit that referenced this pull request Aug 24, 2021
yegor256 added a commit that referenced this pull request Aug 24, 2021
@yegor256
Copy link
Member

@nlchar I think it's fixed, but you need to merge master into your branch now

@nlchar
Copy link
Contributor Author

nlchar commented Aug 24, 2021

Thank you, Yegor.
Synced.

@yegor256
Copy link
Member

@rultor merge

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 0406978 into objectionary:master Aug 24, 2021
@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 4min)

@yegor256
Copy link
Member

@nlchar houray! thanks!

@yegor256
Copy link
Member

@rultor release, tag is 0.2.0

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor release, tag is 0.2.0

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor release, tag is 0.2.0

@nlchar @yegor256 Oops, I failed. You can see the full log here (spent 10min)

[INFO] eo-parser .......................................... SUCCESS [ 49.872 s]
[INFO] eo-maven-plugin .................................... SUCCESS [01:37 min]
[INFO] eo-runtime ......................................... SUCCESS [01:59 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  06:07 min
[INFO] Finished at: 2021-08-24T11:21:58Z
[INFO] ------------------------------------------------------------------------
+ cp eo-parser/src/main/resources/XMIR.xsd /tmp
++ git rev-parse --abbrev-ref HEAD
+ branch=__rultor
+ git checkout gh-pages
Branch 'gh-pages' set up to track remote branch 'gh-pages' from 'origin'.
Switched to a new branch 'gh-pages'
+ git reset --hard
HEAD is now at d427c0b 0.1.34
++ pwd
+ sudo -i /bin/bash -c 'cd '\''/home/r/repo'\''; git clean -fd'
Removing eo-maven-plugin/
Removing eo-parser/
Removing eo-runtime/
Removing target/
+ cp /tmp/XMIR.xsd .
+ sed -i 's|SNAPSHOT|0.2.0|' XMIR.xsd
+ git add XMIR.xsd
+ git commit -am 0.2.0
[gh-pages f0de76a] 0.2.0
 1 file changed, 16 insertions(+), 8 deletions(-)
+ git checkout __rultor
Switched to branch '__rultor'
+ mv /home/r/repo .
++ whoami
+ chown -R root repo
+ '[' -n '' ']'
++ whoami
+ sudo chown -R rultor repo
+ cd repo
+ git checkout __rultor
Already on '__rultor'
+ git tag 0.2.0 -m '0.2.0: tagged by rultor.com'
+ git reset --hard
HEAD is now at 56dc7f0 0.2.0
+ git clean -fd
+ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
+ git branch -D __rultor
Deleted branch __rultor (was 56dc7f0).
+ git push --all origin
To [email protected]:cqfn/eo.git
 ! [rejected]        gh-pages -> gh-pages (fetch first)
error: failed to push some refs to '[email protected]:cqfn/eo.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
container 93ed400e71180aa36545b92635a763f7a1dd819fbdab13edceabb92b43e3ed29 is dead
Tue Aug 24 13:23:04 CEST 2021

@yegor256
Copy link
Member

@rultor release, tag is 0.2.0

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor release, tag is 0.2.0

@yegor256 OK, I will release it now. Please check the progress here

@0crat
Copy link

0crat commented Aug 24, 2021

Job gh:cqfn/eo#318 is not assigned, can't get performer

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor release, tag is 0.2.0

@nlchar @yegor256 Oops, I failed. You can see the full log here (spent 9min)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: com.sonatype.nexus.staging.client.StagingRuleFailuresException: Staging rules failure!
    at com.sonatype.nexus.staging.client.internal.StagingWorkflowV3ServiceImpl.monitorRepositoryTransition (StagingWorkflowV3ServiceImpl.java:272)
    at com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl.monitorRepositoryTransition (StagingWorkflowV2ServiceImpl.java:407)
    at com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl$10.perform (StagingWorkflowV2ServiceImpl.java:281)
    at com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl$10.perform (StagingWorkflowV2ServiceImpl.java:276)
    at com.sonatype.nexus.staging.client.internal.ExceptionConverter.runAndReturn (ExceptionConverter.java:38)
    at com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl.releaseStagingRepositories (StagingWorkflowV2ServiceImpl.java:275)
    at com.sonatype.nexus.staging.client.internal.StagingWorkflowV3ServiceImpl.releaseStagingRepositories (StagingWorkflowV3ServiceImpl.java:91)
    at org.sonatype.nexus.maven.staging.workflow.ReleaseStageRepositoryMojo.doExecute (ReleaseStageRepositoryMojo.java:55)
    at org.sonatype.nexus.maven.staging.workflow.AbstractStagingActionMojo.execute (AbstractStagingActionMojo.java:55)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :eo-runtime
container a27c78c48f49a7491f127cb178ccfdcb3ae171a4b7c30ad348cccf19ca198126 is dead
Tue Aug 24 13:41:26 CEST 2021

@yegor256
Copy link
Member

@rultor release, tag is 0.2.1

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor release, tag is 0.2.1

@yegor256 OK, I will release it now. Please check the progress here

@nlchar
Copy link
Contributor Author

nlchar commented Aug 24, 2021

Rultor release pipeline seems to be ruined 🥺

@yegor256
Copy link
Member

@nlchar it's too strict, not ruined :)

@rultor
Copy link
Contributor

rultor commented Aug 24, 2021

@rultor release, tag is 0.2.1

@yegor256 Done! FYI, the full log is here (took me 8min)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants