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

Add HiveOS Build and Deployment Workflow to deploy.yaml #4

Merged
merged 21 commits into from
Jun 27, 2024

Conversation

x100111010
Copy link
Member

@x100111010 x100111010 commented Jun 27, 2024

This pull request includes several key improvements and fixes for the HiveOS build deployment and logging processes:

  1. Integrated HiveOS Build into Deploy Workflow:

    • Added HiveOS build integration to the deploy.yaml workflow to streamline deployment.
  2. Fixed Uptime Calculation in HiveOS:

    • Updated the get_uptime function to accurately calculate uptime by comparing the current time with the miner start time:
      get_uptime(){
          local start_time=$(cat "/tmp/miner_start_time")
          local current_time=$(date +%s)
          let uptime=current_time-start_time
          echo $uptime
      }
  3. Direct Log File Reading:

    log_file="/var/log/miner/custom/custom.log"
  4. Improved Log Processing with Here-Strings:

    • Enhanced log processing reliability using here-strings (<<<)
      total_khs=$(grep -oP "hashrate is: \K\d+.\d+" <<< "$log" | tail -n1)
      ac=$(grep -coP "Block submitted successfully!" <<< "$log")
  5. Automated Version Tagging:

    • Removed the CUSTOM_VERSION variable, now automatically replaced with the release tag during GitHub deployment..
  6. Executable Permissions for hive-os/h-run.sh:

    • Made hive-os/*.sh executable
  7. Simplified 25ab8bf connection handling logic

x100111010 and others added 21 commits June 23, 2024 16:13
Integrated HiveOS packaging into the existing deploy.yaml workflow.
- Improve script clarity and remove unnecessary comments

- update archive creation paths
Reverted the connection timeout and wait logic in the main script to the previous implementation due to issues with the Minermanager loop.
Use here-strings (<<<) for more reliable log processing
- Removed CUSTOM_VERSION, which will now be automatically replaced with the release tag during GitHub deployment.

- Made hive-os/h-run.sh executable on GitHub.

- Deleted hive-os/spectre-miner-HiveOs.json.
@0xA001113 0xA001113 merged commit 1ec665c into spectre-project:main Jun 27, 2024
8 checks passed
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.

2 participants