Skip to content

Commit

Permalink
Minor nit to not re-enable sql_log_bin + free disk space on gh runner…
Browse files Browse the repository at this point in the history
… before running tests (#339)

* Minor nit to not re-enable sql_log_bin + free disk space on gh runner before running tests

* Update data_interface and upgrade charm libs + update mysql libpatch
  • Loading branch information
shayancanonical authored Oct 18, 2023
1 parent 3da1098 commit 7e3c405
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,17 @@ jobs:
run: |
pipx install tox
pipx install poetry
- name: Free disk space
run: |
echo "Free disk space before cleanup"
df -T
# free space in the runner
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "Free disk space after cleanup"
df -T
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
Expand Down
1 change: 0 additions & 1 deletion lib/charms/mysql/v0/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2579,7 +2579,6 @@ def flush_mysql_logs(self, logs_type: MySQLTextLogs) -> None:
f"shell.connect('{self.server_config_user}:{self.server_config_password}@{self.instance_address}')",
'session.run_sql("SET sql_log_bin = 0")',
f'session.run_sql("FLUSH {logs_type.value}")',
'session.run_sql("SET sql_log_bin = 1")',
)

try:
Expand Down

0 comments on commit 7e3c405

Please sign in to comment.